Docker / main.py
imseldrith's picture
Update main.py
2a5986c
raw
history blame
306 Bytes
import gradio as gr
import shutil
# Define the Gradio interface
def extract_zip(filename):
shutil.unpack_archive("file.zip", '.')
return "Zip file extracted successfully."
iface = gr.Interface(fn=extract_zip, inputs="text", outputs="text", title="Extract Zip File")
iface.launch(debug=True)