Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
simonduerr
/
repro-files
like
0
Runtime error
App
Files
Files
Community
simonduerr
commited on
Mar 25, 2023
Commit
b305b8f
•
1 Parent(s):
18a46dc
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+9
-0
app.py
ADDED
Viewed
@@ -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()