Usually3 commited on
Commit
f57286f
·
1 Parent(s): 50a28de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -13,6 +13,12 @@ def calculator(num1, operation, num2):
13
  return num1 * num1
14
  elif operation == "cube":
15
  return num1 * num1 * num1
 
 
 
 
 
 
16
 
17
 
18
  demo = gr.Interface(
 
13
  return num1 * num1
14
  elif operation == "cube":
15
  return num1 * num1 * num1
16
+ elif operation == "sin":
17
+ return math.sin(num1)
18
+ elif operation == "cos":
19
+ return math.cos(num1)
20
+ elif operation == "tan":
21
+ return math.tan(num1)
22
 
23
 
24
  demo = gr.Interface(