Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
abidlabs
/
global-state-test
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
3828970
global-state-test
/
app.py
abidlabs
HF Staff
Create app.py
3828970
over 2 years ago
raw
Copy download link
history
blame
175 Bytes
state =
0
def
update_state
(
num
):
state = num
with
gr.Blocks()
as
demo:
number = gr.Number(value=state)
number.change(update_state, number,
None
)
demo.launch()