awacke1 commited on
Commit
bd6bfc3
·
1 Parent(s): d1c3bb2

Update app.py

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