Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,10 @@ def execute_command_with_progress(command, description):
|
|
55 |
if uploaded_zip_file is not None:
|
56 |
try:
|
57 |
# Create a temporary directory to unzip the files
|
58 |
-
|
|
|
|
|
|
|
59 |
|
60 |
with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
|
61 |
zip_ref.extractall(temp_dir)
|
|
|
55 |
if uploaded_zip_file is not None:
|
56 |
try:
|
57 |
# Create a temporary directory to unzip the files
|
58 |
+
temp_dir = "/home/user/app/C2C/temp_dicom_dir"
|
59 |
+
|
60 |
+
os.makedirs(temp_dir, exist_ok=True)
|
61 |
+
full_path = os.path.abspath(temp_dir)
|
62 |
|
63 |
with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
|
64 |
zip_ref.extractall(temp_dir)
|