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