testSpace / app.py
Xaot6's picture
Update app.py
d12c712 verified
raw
history blame
269 Bytes
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()