imseldrith commited on
Commit
b750816
·
1 Parent(s): 0cbdeac

Create main.py

Browse files
Files changed (1) hide show
  1. main.py +12 -0
main.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import shutil
3
+ # Define the Gradio interface
4
+ def extract_zip(filename):
5
+ shutil.unpack_archive("file.zip", '.')
6
+
7
+ return "Zip file extracted successfully."
8
+
9
+
10
+
11
+ iface = gr.Interface(fn=extract_zip, inputs="text", outputs="text", title="Extract Zip File")
12
+ iface.launch()