mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
78ab2c8e67
* fix interactivity of value-less components with no dependencies * changelog * changelog fix * changelog fix * changelog fix * formatting
14 lines
324 B
Python
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()
|