frogcjn commited on
Commit
16bfd42
1 Parent(s): 17fd359

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -1,14 +1,7 @@
1
  import gradio as gr
2
 
3
- def calculator(num1, operation, num2):
4
- if operation == "add":
5
- return num1 + num2
6
- elif operation == "subtract":
7
- return num1 - num2
8
- elif operation == "multiply":
9
- return num1 * num2
10
- elif operation == "divide":
11
- return num1 / num2
12
 
13
 
14
  demo = gr.Interface(
 
1
  import gradio as gr
2
 
3
+ def calculator(num):
4
+ return 1
 
 
 
 
 
 
 
5
 
6
 
7
  demo = gr.Interface(