YanaS commited on
Commit
d9f80eb
·
verified ·
1 Parent(s): e422265

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -18,12 +18,12 @@ def dumb_calculator(arg1:int, arg2:int)-> float: #it's import to specify the ret
18
  """
19
  import numpy as np
20
 
21
- if arg1 == 0 and arg2 == 0:
22
- return 0
23
- elif arg1 != 0 and arg2 != 0:
24
- return arg1 * arg2
25
  else:
26
- return np.sqrt(arg1 + arg2)
27
 
28
  @tool
29
  def get_current_time_in_timezone(timezone: str) -> str:
 
18
  """
19
  import numpy as np
20
 
21
+ if str(int(arg1) == 0) and str(int(arg2) == 0):
22
+ return str(int(0))
23
+ elif str(int(arg1) != 0) and str(int(arg2) != 0):
24
+ return str(int(arg1 * arg2))
25
  else:
26
+ return str(int(np.sqrt(arg1 + arg2)))
27
 
28
  @tool
29
  def get_current_time_in_timezone(timezone: str) -> str: