Download app.py from Tonic/echo: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/spaces/Tonic/echo/resolve/main/app.py
- Command line
-
hf download hf://spaces/Tonic/echo/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Tonic/echo/resolve/main/app.py
197 Bytes
| import gradio as gr | |
| def echo(echo, slider): | |
| return f"Echo: {echo}, Intensity: {slider}" | |
| demo = gr.Interface( | |
| fn=echo, | |
| inputs=["text", "slider"], | |
| outputs=["text"], | |
| ) | |
| demo.launch() |