Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,18 @@ 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 |
|
|
|
|
| 33 |
except Exception as e:
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
+
@tool
|
| 37 |
+
def mutliplicate_two_numbers(number1: int, number2: int) -> int:
|
| 38 |
+
"""A tool that multiplicate two numbers by creating simple math oparation number1*number2
|
| 39 |
+
Args:
|
| 40 |
+
number1: A integer value of first parameter
|
| 41 |
+
number2: A integer value of second parameter
|
| 42 |
+
"""
|
| 43 |
+
try:
|
| 44 |
+
return number1*number2
|
| 45 |
+
except Exception as e:
|
| 46 |
+
return f"Error in the multipliaction of number, missing argument or type mismach"
|
| 47 |
+
|
| 48 |
|
| 49 |
final_answer = FinalAnswerTool()
|
| 50 |
|