Spaces:
Sleeping
Sleeping
Update app.py
Browse filesadded multiplication of numbers
app.py
CHANGED
@@ -33,6 +33,17 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
final_answer = FinalAnswerTool()
|
38 |
model = HfApiModel(
|
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
+
@tool
|
37 |
+
def get_multiplication_numbers(arg1:int, arg2:int) -> int:
|
38 |
+
"""A tool that calculates the Multiplication of given numbers.
|
39 |
+
Args:
|
40 |
+
arg1: a valid integer number.
|
41 |
+
arg2: a valid integer number.
|
42 |
+
"""
|
43 |
+
try:
|
44 |
+
return arg1*arg2
|
45 |
+
except Exception as e:
|
46 |
+
return f"Error calculation of multiplication"
|
47 |
|
48 |
final_answer = FinalAnswerTool()
|
49 |
model = HfApiModel(
|