Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,8 @@ import requests
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
|
|
|
|
|
|
| 7 |
from huggingface_hub import InferenceClient
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
from PIL import Image
|
|
@@ -77,7 +79,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 77 |
|
| 78 |
agent = CodeAgent(
|
| 79 |
model=model,
|
| 80 |
-
tools=[final_answer,get_current_time_in_timezone, image_generator], ## add your tools here (don't remove final answer)
|
| 81 |
max_steps=6,
|
| 82 |
verbosity_level=1,
|
| 83 |
grammar=None,
|
|
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
+
from tools.web_search import DuckDuckGoSearchTool
|
| 8 |
+
from visit_webpage import VisitWebpageTool
|
| 9 |
from huggingface_hub import InferenceClient
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
from PIL import Image
|
|
|
|
| 79 |
|
| 80 |
agent = CodeAgent(
|
| 81 |
model=model,
|
| 82 |
+
tools=[final_answer,get_current_time_in_timezone, image_generator, DuckDuckGoSearchTool, VisitWebpageTool], ## add your tools here (don't remove final answer)
|
| 83 |
max_steps=6,
|
| 84 |
verbosity_level=1,
|
| 85 |
grammar=None,
|