Spaces:
Sleeping
Sleeping
update app.py
Browse files
app.py
CHANGED
|
@@ -51,14 +51,14 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 51 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 52 |
|
| 53 |
@tool
|
| 54 |
-
def my_calculator(intg1: int, intg2: int) ->
|
| 55 |
"""A tool that calculates the product of two integgers
|
| 56 |
Args:
|
| 57 |
intg1: The first number in the calculation.
|
| 58 |
intg2: The second number in the calculation.
|
| 59 |
"""
|
| 60 |
product = intg1 * intg2
|
| 61 |
-
|
| 62 |
|
| 63 |
duckduckgo_tool=DuckDuckGoSearchTool()
|
| 64 |
final_answer=FinalAnswerTool()
|
|
|
|
| 51 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 52 |
|
| 53 |
@tool
|
| 54 |
+
def my_calculator(intg1: int, intg2: int) -> int:
|
| 55 |
"""A tool that calculates the product of two integgers
|
| 56 |
Args:
|
| 57 |
intg1: The first number in the calculation.
|
| 58 |
intg2: The second number in the calculation.
|
| 59 |
"""
|
| 60 |
product = intg1 * intg2
|
| 61 |
+
return f"The product of {intg1} and {intg2} is {product}."
|
| 62 |
|
| 63 |
duckduckgo_tool=DuckDuckGoSearchTool()
|
| 64 |
final_answer=FinalAnswerTool()
|