Download app.py from Shanuka01/Test: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/Shanuka01/Test/resolve/main/app.py
- Command line
-
hf download hf://spaces/Shanuka01/Test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Shanuka01/Test/resolve/main/app.py
254 Bytes
| import gradio as gr | |
| def greet(num_1, num_2): | |
| return num_1 + num_2 | |
| demo = gr.Interface(fn=greet, | |
| title="Sum of two numbers", | |
| inputs=["number", "number"], | |
| outputs="number") | |
| demo.launch() | |