Download app.py from Jan5711/hello: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/spaces/Jan5711/hello/resolve/main/app.py
- Command line
-
hf download hf://spaces/Jan5711/hello/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Jan5711/hello/resolve/main/app.py
226 Bytes
| import gradio as gr | |
| def greet(name, intensity): | |
| return "Hello, " + name + "!" * int(intensity) | |
| demo = gr.Interface( | |
| fn=greet, | |
| inputs=["text", "slider"], | |
| outputs=["text"], | |
| ) | |
| demo.launch(share=True) |