Update app.py
Browse files
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(
|