taesiri commited on
Commit
95b4814
1 Parent(s): ad75351
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -63,9 +63,13 @@ import os
63
  # After the extraction line
64
  print("Directory contents:", os.listdir("./dogs/topK/"))
65
 
66
- with zipfile.ZipFile(zip_file_path, "r") as zip_ref:
67
- print("Zip contents:", zip_ref.namelist())
68
- zip_ref.extractall("./")
 
 
 
 
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