File size: 206 Bytes
b305b8f
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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()