repro-files / app.py
simonduerr's picture
Create app.py
b305b8f
raw
history blame
206 Bytes
import gradio as gr
import os
with gr.Blocks() as demo:
f = gr.File(file_count="multiple")
j = gr.JSON()
f.upload(lambda files:[os.path.basename(fo.name) for fo in files], f, j)
demo.launch()