Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 58 |
|
| 59 |
agent = CodeAgent(
|
| 60 |
model=model,
|
| 61 |
-
tools=[final_answer
|
| 62 |
max_steps=6,
|
| 63 |
verbosity_level=1,
|
| 64 |
grammar=None,
|
|
@@ -67,6 +67,7 @@ agent = CodeAgent(
|
|
| 67 |
description=None,
|
| 68 |
prompt_templates=prompt_templates
|
| 69 |
)
|
| 70 |
-
|
|
|
|
| 71 |
|
| 72 |
GradioUI(agent).launch()
|
|
|
|
| 58 |
|
| 59 |
agent = CodeAgent(
|
| 60 |
model=model,
|
| 61 |
+
tools=[final_answer], ## add your tools here (don't remove final answer)
|
| 62 |
max_steps=6,
|
| 63 |
verbosity_level=1,
|
| 64 |
grammar=None,
|
|
|
|
| 67 |
description=None,
|
| 68 |
prompt_templates=prompt_templates
|
| 69 |
)
|
| 70 |
+
final_answer = agent.run("What is the cube of 2?")
|
| 71 |
+
print(final_answer)
|
| 72 |
|
| 73 |
GradioUI(agent).launch()
|