Pradeep Kumar commited on
Commit
07c3607
·
verified ·
1 Parent(s): fd62a10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -2,9 +2,12 @@ import zipfile
2
  import sys
3
  import os
4
 
5
- # Check current directory and list files
6
- print("Current Directory:", os.getcwd())
7
- print("Files in Directory:", os.listdir())
 
 
 
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