simonduerr commited on
Commit
b305b8f
1 Parent(s): 18a46dc

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+
4
+ with gr.Blocks() as demo:
5
+ f = gr.File(file_count="multiple")
6
+ j = gr.JSON()
7
+ f.upload(lambda files:[os.path.basename(fo.name) for fo in files], f, j)
8
+
9
+ demo.launch()