gradio/demo/blocks_static/run.py
pngwn 78ab2c8e67
fix interactivity of value-less components with no dependencies (#2459)
* fix interactivity of value-less components with no dependencies

* changelog

* changelog fix

* changelog fix

* changelog fix

* formatting
2022-10-14 17:12:42 +01:00

14 lines
324 B
Python

import gradio as gr
demo = gr.Blocks()
with demo:
gr.Image(
"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80"
)
gr.Textbox("hi")
gr.Number(3)
if __name__ == "__main__":
demo.launch()