Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,14 +65,15 @@ def run_inference():
|
|
65 |
|
66 |
if uploaded_zip_file is not None:
|
67 |
try:
|
|
|
|
|
|
|
68 |
temp_dir = "/home/user/app/C2C/temp_dicom_dir"
|
69 |
|
70 |
os.makedirs(temp_dir, exist_ok=True)
|
71 |
full_path = os.path.abspath(temp_dir)
|
72 |
st.success("Zip file uploaded successfully")
|
73 |
|
74 |
-
install_dependencies()
|
75 |
-
# st.write(f"Temporary directory path: {full_path}")
|
76 |
|
77 |
with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
|
78 |
zip_ref.extractall(temp_dir)
|
|
|
65 |
|
66 |
if uploaded_zip_file is not None:
|
67 |
try:
|
68 |
+
|
69 |
+
install_dependencies()
|
70 |
+
|
71 |
temp_dir = "/home/user/app/C2C/temp_dicom_dir"
|
72 |
|
73 |
os.makedirs(temp_dir, exist_ok=True)
|
74 |
full_path = os.path.abspath(temp_dir)
|
75 |
st.success("Zip file uploaded successfully")
|
76 |
|
|
|
|
|
77 |
|
78 |
with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
|
79 |
zip_ref.extractall(temp_dir)
|