Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import pytz
|
|
5 |
import yaml
|
6 |
import os
|
7 |
from tools.final_answer import FinalAnswerTool
|
8 |
-
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
@@ -61,7 +61,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
61 |
|
62 |
agent = CodeAgent(
|
63 |
model=model,
|
64 |
-
|
65 |
max_steps=6,
|
66 |
verbosity_level=1,
|
67 |
grammar=None,
|
|
|
5 |
import yaml
|
6 |
import os
|
7 |
from tools.final_answer import FinalAnswerTool
|
8 |
+
from tools import visit_webpage.py
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
61 |
|
62 |
agent = CodeAgent(
|
63 |
model=model,
|
64 |
+
tools=[final_answer, get_current_time_in_timezone, visit_webpage], ## add your tools here (don't remove final answer)
|
65 |
max_steps=6,
|
66 |
verbosity_level=1,
|
67 |
grammar=None,
|