File size: 339 Bytes
6804d36
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def download_file(file_path):
  return file_path

interface = gr.Interface(
    fn=download_file,
    inputs=gr.File(label="Select file to download"),
    outputs=gr.File(label="Download file"),
    title="Download File",
    description="Select a file from your computer to download."
)

interface.launch(share=True)