Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,11 +34,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
-
def add_nums(a, b):
|
| 38 |
-
"""A tool that takes two
|
| 39 |
-
|
| 40 |
-
number will follow Python's rules for addition"""
|
| 41 |
-
return a + b
|
| 42 |
|
| 43 |
|
| 44 |
final_answer = FinalAnswerTool()
|
|
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
+
def add_nums(a: int, b: int) -> int:
|
| 38 |
+
"""A tool that takes two integers as parameters and returns their sum."""
|
| 39 |
+
return int(a) + int(b)
|
|
|
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
final_answer = FinalAnswerTool()
|