Spaces:
Paused
Paused
Commit ·
e53ccb9
1
Parent(s): 6e95726
Update main.py
Browse files
main.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import shutil
|
| 3 |
# Define the Gradio interface
|
|
|
|
|
|
|
|
|
|
| 4 |
def extract_zip(filename):
|
| 5 |
-
shutil.unpack_archive(
|
| 6 |
|
| 7 |
return "Zip file extracted successfully."
|
| 8 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import shutil, os
|
| 3 |
# Define the Gradio interface
|
| 4 |
+
f = os.getcwd()
|
| 5 |
+
pth = f+"/"+"file.zip"
|
| 6 |
+
print(pth)
|
| 7 |
def extract_zip(filename):
|
| 8 |
+
shutil.unpack_archive(pth, f)
|
| 9 |
|
| 10 |
return "Zip file extracted successfully."
|
| 11 |
|