Spaces:
Sleeping
Sleeping
omg finally?
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import math
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
@tool
|
| 11 |
-
def
|
| 12 |
"""A tool that calculates the greatest common divisor between 2 numbers
|
| 13 |
Args:
|
| 14 |
number1: the first argument
|
|
@@ -54,7 +54,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 54 |
|
| 55 |
agent = CodeAgent(
|
| 56 |
model=model,
|
| 57 |
-
tools=[final_answer],
|
| 58 |
max_steps=6,
|
| 59 |
verbosity_level=1,
|
| 60 |
grammar=None,
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
@tool
|
| 11 |
+
def gcd_epic_calculation(number1:int, number2:int)-> str:
|
| 12 |
"""A tool that calculates the greatest common divisor between 2 numbers
|
| 13 |
Args:
|
| 14 |
number1: the first argument
|
|
|
|
| 54 |
|
| 55 |
agent = CodeAgent(
|
| 56 |
model=model,
|
| 57 |
+
tools=[final_answer, gcd_epic_calculation],
|
| 58 |
max_steps=6,
|
| 59 |
verbosity_level=1,
|
| 60 |
grammar=None,
|