Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import os
|
|
4 |
|
5 |
def extract_zip_file(zip_file):
|
6 |
# Save the uploaded ZIP file to a temporary path
|
7 |
-
zip_file_path =
|
8 |
with open(zip_file_path, 'wb') as f:
|
9 |
f.write(zip_file.read())
|
10 |
|
@@ -21,7 +21,7 @@ def extract_zip_file(zip_file):
|
|
21 |
# Create a gradio interface
|
22 |
iface = gr.Interface(
|
23 |
fn=extract_zip_file,
|
24 |
-
inputs=gr.
|
25 |
outputs="text"
|
26 |
)
|
27 |
|
|
|
4 |
|
5 |
def extract_zip_file(zip_file):
|
6 |
# Save the uploaded ZIP file to a temporary path
|
7 |
+
zip_file_path = 'uploaded_zip.zip'
|
8 |
with open(zip_file_path, 'wb') as f:
|
9 |
f.write(zip_file.read())
|
10 |
|
|
|
21 |
# Create a gradio interface
|
22 |
iface = gr.Interface(
|
23 |
fn=extract_zip_file,
|
24 |
+
inputs=gr.File(label="Upload ZIP File"),
|
25 |
outputs="text"
|
26 |
)
|
27 |
|