Kukulauren commited on
Commit
fa8888b
·
verified ·
1 Parent(s): 88ccfe7

changing info

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -5,8 +5,8 @@ import os
5
  import tempfile
6
  import nibabel as nib
7
 
8
- st.title("NIfTI File Uploader and Video Generator")
9
- st.write("This tool accepts NIfTI `.nii` or `.nii.gz` files smaller than a specific size.")
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 Finalized Mask",
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 Finalized Image",
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 generate the video.")
 
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.")