Spaces:
Runtime error
Runtime error
Commit
•
4a73a40
1
Parent(s):
3e6bee3
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ if not os.path.exists(target_dir):
|
|
17 |
os.makedirs(target_dir)
|
18 |
|
19 |
# Open the zip file and extract its contents to the target directory
|
20 |
-
with
|
21 |
zip_ref.extractall(target_dir)
|
22 |
|
23 |
device = 'cpu'
|
|
|
17 |
os.makedirs(target_dir)
|
18 |
|
19 |
# Open the zip file and extract its contents to the target directory
|
20 |
+
with zipfile(zip_filename, 'r') as zip_ref:
|
21 |
zip_ref.extractall(target_dir)
|
22 |
|
23 |
device = 'cpu'
|