Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,14 +34,14 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
|
| 46 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 47 |
final_answer = FinalAnswerTool()
|
|
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
+
def calculator_tool(a:int,b:int)->int:
|
| 38 |
+
""" A tool that multiplies two integers.
|
| 39 |
+
Args:
|
| 40 |
+
a: A valid integer,
|
| 41 |
+
b: A valid integer
|
| 42 |
+
"""
|
| 43 |
+
c = a * b
|
| 44 |
+
return f"Output is : '{c}'"
|
| 45 |
|
| 46 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 47 |
final_answer = FinalAnswerTool()
|