Spaces:
Runtime error
Runtime error
changes
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import requests
|
|
| 4 |
import yaml
|
| 5 |
from tools.final_answer import FinalAnswerTool
|
| 6 |
|
| 7 |
-
from Gradio_UI import GradioUI
|
| 8 |
|
| 9 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 10 |
@tool
|
|
@@ -64,7 +64,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 64 |
|
| 65 |
agent = CodeAgent(
|
| 66 |
model=model,
|
| 67 |
-
tools=[final_answer,
|
| 68 |
max_steps=6,
|
| 69 |
verbosity_level=1,
|
| 70 |
grammar=None,
|
|
@@ -74,5 +74,7 @@ agent = CodeAgent(
|
|
| 74 |
prompt_templates=prompt_templates
|
| 75 |
)
|
| 76 |
|
|
|
|
| 77 |
|
| 78 |
-
|
|
|
|
|
|
| 4 |
import yaml
|
| 5 |
from tools.final_answer import FinalAnswerTool
|
| 6 |
|
| 7 |
+
#from Gradio_UI import GradioUI
|
| 8 |
|
| 9 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 10 |
@tool
|
|
|
|
| 64 |
|
| 65 |
agent = CodeAgent(
|
| 66 |
model=model,
|
| 67 |
+
tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
| 68 |
max_steps=6,
|
| 69 |
verbosity_level=1,
|
| 70 |
grammar=None,
|
|
|
|
| 74 |
prompt_templates=prompt_templates
|
| 75 |
)
|
| 76 |
|
| 77 |
+
agent.run("America/New_York")
|
| 78 |
|
| 79 |
+
|
| 80 |
+
#GradioUI(agent).launch()
|