Spaces:
No application file
No application file
Download adding from Rekham1110/Addition: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/Rekham1110/Addition/resolve/main/adding
- Command line
-
hf download hf://spaces/Rekham1110/Addition/adding
-
curl -L -o adding https://huggingface.co/spaces/Rekham1110/Addition/resolve/main/adding
447 Bytes
| import gradio as gr | |
| # Function to add two numbers | |
| def add_numbers(num1, num2): | |
| return num1 + num2 | |
| # Create the Gradio interface | |
| interface = gr.Interface(fn=add_numbers, | |
| inputs=["number", "number"], | |
| outputs="number", | |
| title="Simple Addition App", | |
| description="Enter two numbers to get their sum.") | |
| # Launch the interface | |
| interface.launch() | |