Spaces:
Build error
Build error
Download app.py from EuroPython2022/example-hello: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/spaces/EuroPython2022/example-hello/resolve/main/app.py
- Command line
-
hf download hf://spaces/EuroPython2022/example-hello/app.py
-
curl -L -o app.py https://huggingface.co/spaces/EuroPython2022/example-hello/resolve/main/app.py
392 Bytes
| import gradio as gr | |
| def update(name): | |
| return f"Welcome to EuroPython 2022, {name}!" | |
| demo = gr.Blocks() | |
| with demo: | |
| gr.Markdown( | |
| """ | |
| # Hello World! | |
| Start typing below to see the output. | |
| """) | |
| inp = gr.Textbox(placeholder="What is your name?") | |
| out = gr.Textbox() | |
| inp.change(fn=update, | |
| inputs=inp, | |
| outputs=out) | |
| demo.launch() |