Spaces:
Runtime error
Runtime error
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() |