Kukulauren
commited on
changing info
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import os
|
|
5 |
import tempfile
|
6 |
import nibabel as nib
|
7 |
|
8 |
-
st.title("
|
9 |
-
st.write("This tool accepts NIfTI `.nii` or `.nii.gz` files smaller than
|
10 |
uploaded_file = st.file_uploader("Upload a NIfTI file (.nii or .nii.gz)", type=["nii", "nii.gz"])
|
11 |
|
12 |
if uploaded_file is not None:
|
@@ -38,7 +38,7 @@ if uploaded_file is not None:
|
|
38 |
# Provide download buttons for the finalized files
|
39 |
with open(mask_path, "rb") as f:
|
40 |
st.download_button(
|
41 |
-
label="Download
|
42 |
data=f,
|
43 |
file_name="finalized_mask.nii",
|
44 |
mime="application/octet-stream"
|
@@ -46,7 +46,7 @@ if uploaded_file is not None:
|
|
46 |
|
47 |
with open(image_path, "rb") as f:
|
48 |
st.download_button(
|
49 |
-
label="Download
|
50 |
data=f,
|
51 |
file_name="finalized_image.nii.gz",
|
52 |
mime="application/octet-stream"
|
@@ -55,4 +55,4 @@ if uploaded_file is not None:
|
|
55 |
except Exception as e:
|
56 |
st.error(f"An error occurred: {e}")
|
57 |
else:
|
58 |
-
st.info("Please upload a NIfTI file to
|
|
|
5 |
import tempfile
|
6 |
import nibabel as nib
|
7 |
|
8 |
+
st.title("Dental medical imaging 3D")
|
9 |
+
st.write("This tool accepts NIfTI `.nii` or `.nii.gz` files smaller than 400MB.")
|
10 |
uploaded_file = st.file_uploader("Upload a NIfTI file (.nii or .nii.gz)", type=["nii", "nii.gz"])
|
11 |
|
12 |
if uploaded_file is not None:
|
|
|
38 |
# Provide download buttons for the finalized files
|
39 |
with open(mask_path, "rb") as f:
|
40 |
st.download_button(
|
41 |
+
label="Download Output Mask",
|
42 |
data=f,
|
43 |
file_name="finalized_mask.nii",
|
44 |
mime="application/octet-stream"
|
|
|
46 |
|
47 |
with open(image_path, "rb") as f:
|
48 |
st.download_button(
|
49 |
+
label="Download The Image",
|
50 |
data=f,
|
51 |
file_name="finalized_image.nii.gz",
|
52 |
mime="application/octet-stream"
|
|
|
55 |
except Exception as e:
|
56 |
st.error(f"An error occurred: {e}")
|
57 |
else:
|
58 |
+
st.info("Please upload a NIfTI file to get preprocessed image and mask.")
|