Download app.py from peter288/299: direct link, hf CLI and curl.
- Browser
- Download file 160 Bytes
-
https://huggingface.co/spaces/peter288/299/resolve/main/app.py
- Command line
-
hf download hf://spaces/peter288/299/app.py
-
curl -L -o app.py https://huggingface.co/spaces/peter288/299/resolve/main/app.py
160 Bytes
| import gradio as gr | |
| def add(a, b): | |
| return a + b | |
| iface = gr.Interface( | |
| fn=add, | |
| inputs=["number", "number"], | |
| outputs="number" | |
| ) | |
| iface.launch() | |