Spaces:
Running
Running
Pradeep Kumar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,12 @@ import zipfile
|
|
2 |
import sys
|
3 |
import os
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
8 |
|
9 |
sys.path.append('/home/user/app/models.zip')
|
10 |
|
|
|
2 |
import sys
|
3 |
import os
|
4 |
|
5 |
+
|
6 |
+
|
7 |
+
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
|
8 |
+
extract_path = 'models'
|
9 |
+
zip_ref.extractall(extract_path)
|
10 |
+
print(f"Extracted contents to {os.path.abspath(extract_path)}")
|
11 |
|
12 |
sys.path.append('/home/user/app/models.zip')
|
13 |
|