Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ if uploaded_zip_file is not None:
|
|
35 |
st.write(f"Temporary directory path: {temp_dir}")
|
36 |
|
37 |
with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
|
38 |
-
|
39 |
|
40 |
# Get a list of DICOM files in the directory
|
41 |
dicom_files = [os.path.join(temp_dir, f) for f in os.listdir(temp_dir) if f.endswith(".dcm")]
|
|
|
35 |
st.write(f"Temporary directory path: {temp_dir}")
|
36 |
|
37 |
with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
|
38 |
+
zip_ref.extractall(temp_dir)
|
39 |
|
40 |
# Get a list of DICOM files in the directory
|
41 |
dicom_files = [os.path.join(temp_dir, f) for f in os.listdir(temp_dir) if f.endswith(".dcm")]
|