Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def add_numbers(a, b):
|
4 |
+
return a + b
|
5 |
+
|
6 |
+
input_a = gr.inputs.Number(label="Number A")
|
7 |
+
input_b = gr.inputs.Number(label="Number B")
|
8 |
+
|
9 |
+
interface = gr.Interface(fn=add_numbers, inputs=[input_a, input_b], outputs="number", title="Addition Calculator")
|
10 |
+
interface.launch()
|