Spaces:
No application file
No application file
| 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() | |