Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ 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 multiply_numbers(
|
38 |
"""
|
39 |
Multiplies two integers and returns the result.
|
40 |
|
@@ -56,11 +56,11 @@ def multiply_numbers(num1: int, num2: int) -> intt:
|
|
56 |
|
57 |
Example:
|
58 |
-------
|
59 |
-
>>>
|
60 |
12
|
61 |
"""
|
62 |
try:
|
63 |
-
result =
|
64 |
return result
|
65 |
except Exception as e:
|
66 |
raise ValueError(f"An error occurred during multiplication: {e}")
|
|
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
@tool
|
37 |
+
def multiply_numbers(a: int, b: int) -> intt:
|
38 |
"""
|
39 |
Multiplies two integers and returns the result.
|
40 |
|
|
|
56 |
|
57 |
Example:
|
58 |
-------
|
59 |
+
>>> multiply_numbers(3, 4)
|
60 |
12
|
61 |
"""
|
62 |
try:
|
63 |
+
result = a * b
|
64 |
return result
|
65 |
except Exception as e:
|
66 |
raise ValueError(f"An error occurred during multiplication: {e}")
|