sonjil commited on
Commit
bbb8148
·
verified ·
1 Parent(s): 9031887

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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, inputs=[gr.Number(label="Number1"), gr.Number(label="Number2")], gr.Radio(["Add", "Sub", "Mul", "Div"], label="Operation", info="operation to perform on number"),gr.Textbox(label="Result") )
 
 
 
 
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()