Spaces:
Sleeping
Sleeping
update
Browse files
app.py
CHANGED
|
@@ -63,9 +63,13 @@ import os
|
|
| 63 |
# After the extraction line
|
| 64 |
print("Directory contents:", os.listdir("./dogs/topK/"))
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
|
|
|
|
| 63 |
# After the extraction line
|
| 64 |
print("Directory contents:", os.listdir("./dogs/topK/"))
|
| 65 |
|
| 66 |
+
try:
|
| 67 |
+
with zipfile.ZipFile(zip_file_path, "r") as zip_ref:
|
| 68 |
+
zip_ref.extractall("./")
|
| 69 |
+
print("Extraction successful.")
|
| 70 |
+
print("Extracted files:", os.listdir("./"))
|
| 71 |
+
except Exception as e:
|
| 72 |
+
print(f"Failed to extract the zip file: {e}")
|
| 73 |
|
| 74 |
|
| 75 |
|