Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import zipfile
|
2 |
+
import os
|
3 |
+
|
4 |
+
# Path to the zip file
|
5 |
+
zip_file = 'srinu.zip'
|
6 |
+
|
7 |
+
# Directory to extract to (current directory in this case)
|
8 |
+
extract_dir = './'
|
9 |
+
|
10 |
+
# Open and extract the zip file
|
11 |
+
with zipfile.ZipFile(zip_file, 'r') as zip_ref:
|
12 |
+
zip_ref.extractall(extract_dir)
|
13 |
+
|
14 |
+
print(f'Files extracted to {os.path.abspath(extract_dir)}')
|