Download app.py from JetTHSu/demo: direct link, hf CLI and curl.
- Browser
- Download file 180 Bytes
-
https://huggingface.co/spaces/JetTHSu/demo/resolve/main/app.py
- Command line
-
hf download hf://spaces/JetTHSu/demo/app.py
-
curl -L -o app.py https://huggingface.co/spaces/JetTHSu/demo/resolve/main/app.py
180 Bytes
| import gradio as gr | |
| def square(x): | |
| return x**2 | |
| demo = gr.Interface( | |
| fn=square, | |
| inputs=gr.Number(), | |
| outputs=gr.Number(), | |
| title="My First Demo" | |
| ) | |
| demo.launch() |