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...
894bbbc
gradio-event-in-tab
/
app.py
hysts
HF Staff
Create app.py
894bbbc
verified
21 days ago
raw
Copy download link
history
blame
182 Bytes
import
gradio
as
gr
def
fn
(
image
):
print
(
"aaa"
)
with
gr.Blocks()
as
demo:
with
gr.Tab(
"a"
):
image = gr.Image()
image.change(fn=fn, inputs=image)
demo.launch()