Update app.py
Browse filesreplace function with addition function
app.py
CHANGED
@@ -8,27 +8,21 @@ from tools.final_answer import FinalAnswerTool
|
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
@tool
|
11 |
-
def
|
12 |
"""
|
13 |
-
Returns the
|
14 |
|
15 |
Args:
|
16 |
-
|
17 |
-
|
18 |
|
19 |
Returns:
|
20 |
-
int: The
|
21 |
"""
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
if pos!= -1:
|
27 |
-
count += 1
|
28 |
-
start = pos + 1
|
29 |
-
else:
|
30 |
-
break
|
31 |
-
return count
|
32 |
|
33 |
@tool
|
34 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
@tool
|
11 |
+
def addition(first_number: int, second_number: int) -> int:
|
12 |
"""
|
13 |
+
Returns the sum of two numbers.
|
14 |
|
15 |
Args:
|
16 |
+
first_number: The first number that is used for addition.
|
17 |
+
second_number: The second number that is used for addition.
|
18 |
|
19 |
Returns:
|
20 |
+
int: The sum of the two numbers provided.
|
21 |
"""
|
22 |
+
|
23 |
+
result_sum = first_number + second_number;
|
24 |
+
|
25 |
+
return result_sum;
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
@tool
|
28 |
def get_current_time_in_timezone(timezone: str) -> str:
|