File size: 269 Bytes
3cde577
 
 
 
 
d12c712
3cde577
 
 
d12c712
3cde577
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr

def process_file(file):
    if file is not None:
        return file.name
    return "No file uploaded."

iface = gr.Interface(
    fn=process_file,
    inputs=gr.File(label="Upload your file"),
    outputs="text",
    live=False
)

iface.launch()