Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
hysts-debug
/
gradio-event-in-tab
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
hysts
HF Staff
commited on
16 days ago
Commit
894bbbc
·
verified
·
1 Parent(s):
bdd32db
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+12
-0
app.py
ADDED
Viewed
@@ -0,0 +1,12 @@
1
+
import gradio as gr
2
+
3
+
4
+
def fn(image):
5
+
print("aaa")
6
+
7
+
8
+
with gr.Blocks() as demo:
9
+
with gr.Tab("a"):
10
+
image = gr.Image()
11
+
image.change(fn=fn, inputs=image)
12
+
demo.launch()