Spaces:
Sleeping
Sleeping
Download app.py from Utkarsh736/Docker-gradio-demo: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/Utkarsh736/Docker-gradio-demo/resolve/main/app.py
- Command line
-
hf download hf://spaces/Utkarsh736/Docker-gradio-demo/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Utkarsh736/Docker-gradio-demo/resolve/main/app.py
382 Bytes
| import gradio as gr | |
| def update(name): | |
| return f"Welcome to Gradio, {name}!" | |
| with gr.Blocks() as demo: | |
| gr.Markdown("Start typing below and then click **Run** to see the output.") | |
| 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() |