Spaces:
Build error
Build error
Download app.py from multimodalart/repro_image_error: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/spaces/multimodalart/repro_image_error/resolve/main/app.py
- Command line
-
hf download hf://spaces/multimodalart/repro_image_error/app.py
-
curl -L -o app.py https://huggingface.co/spaces/multimodalart/repro_image_error/resolve/main/app.py
368 Bytes
| import gradio as gr | |
| import gradio as gr | |
| def update(name): | |
| return f"Welcome to Gradio, {name}!" | |
| with gr.Blocks() as demo: | |
| gr.HTML('<img src="file/cat-toy.png">') | |
| with gr.Row(): | |
| inp = gr.Textbox(placeholder="What is your name?") | |
| out = gr.Textbox() | |
| btn = gr.Button("Run") | |
| btn.click(fn=update, inputs=inp, outputs=out) | |
| demo.launch() |