File size: 296 Bytes
b750816
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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()