Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,13 +18,7 @@ def dumb_calculator(arg1:int, arg2:int)-> float: #it's import to specify the ret
|
|
18 |
arg2 (int): the second argument
|
19 |
"""
|
20 |
import numpy as np
|
21 |
-
|
22 |
-
if str(int(arg1) == 0) and str(int(arg2) == 0):
|
23 |
-
return str(int(0))
|
24 |
-
elif str(int(arg1) != 0) and str(int(arg2) != 0):
|
25 |
-
return str(int(arg1 * arg2))
|
26 |
-
else:
|
27 |
-
return str(int(np.sqrt(arg1 + arg2)))
|
28 |
|
29 |
@tool
|
30 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
18 |
arg2 (int): the second argument
|
19 |
"""
|
20 |
import numpy as np
|
21 |
+
return str(int(arg1 * arg2))
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
@tool
|
24 |
def get_current_time_in_timezone(timezone: str) -> str:
|