Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,6 +71,9 @@ if uploaded_zip_file is not None:
|
|
71 |
plt = display_dicom_image(selected_slice, dicom_files)
|
72 |
st.pyplot(plt)
|
73 |
|
|
|
|
|
|
|
74 |
if st.button("Analyze"):
|
75 |
command = "chmod +x inference.sh"
|
76 |
|
@@ -120,14 +123,13 @@ if st.button("Analyze"):
|
|
120 |
if os.path.exists(image_path):
|
121 |
st.title("Diameter Graph")
|
122 |
st.image(image_path, use_column_width=True)
|
123 |
-
|
124 |
-
|
125 |
|
126 |
|
127 |
|
128 |
|
129 |
-
|
130 |
-
st.error(f"Error: {str(e)}")
|
131 |
# finally:
|
132 |
# shutil.rmtree(temp_dir)
|
133 |
|
|
|
71 |
plt = display_dicom_image(selected_slice, dicom_files)
|
72 |
st.pyplot(plt)
|
73 |
|
74 |
+
except Exception as e:
|
75 |
+
st.error(f"Error: {str(e)}")
|
76 |
+
|
77 |
if st.button("Analyze"):
|
78 |
command = "chmod +x inference.sh"
|
79 |
|
|
|
123 |
if os.path.exists(image_path):
|
124 |
st.title("Diameter Graph")
|
125 |
st.image(image_path, use_column_width=True)
|
126 |
+
except Exception as e:
|
127 |
+
st.error(f"Error: {str(e)}")
|
128 |
|
129 |
|
130 |
|
131 |
|
132 |
+
|
|
|
133 |
# finally:
|
134 |
# shutil.rmtree(temp_dir)
|
135 |
|