Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,5 +18,9 @@ def calculator(num1, num2, operation):
|
|
18 |
|
19 |
|
20 |
# demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
21 |
-
face = gr.Interface(fn = calculator,
|
|
|
|
|
|
|
|
|
22 |
face.launch()
|
|
|
18 |
|
19 |
|
20 |
# demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
21 |
+
face = gr.Interface(fn = calculator,
|
22 |
+
inputs=[gr.Number(label="Number1"),
|
23 |
+
gr.Number(label="Number2"),
|
24 |
+
gr.Radio(["Add", "Sub", "Mul", "Div"], label="Operation", info="operation to perform on number")],
|
25 |
+
gr.Textbox(label="Result") )
|
26 |
face.launch()
|