Spaces:
Running
Running
Update app.py
Browse filesRaised steps to 8
app.py
CHANGED
|
@@ -12,7 +12,6 @@ import requests
|
|
| 12 |
import pytz
|
| 13 |
import yaml
|
| 14 |
import yfinance as yf
|
| 15 |
-
import pandas # for yfinance
|
| 16 |
from tools.final_answer import FinalAnswerTool
|
| 17 |
from tools.visit_webpage import VisitWebpageTool
|
| 18 |
from tools.web_search import DuckDuckGoSearchTool # note DuckDuckGoSearchTool from smolagents, anyway: one could load like we do for the text2img tool
|
|
@@ -85,7 +84,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 85 |
agent = CodeAgent(
|
| 86 |
model=model,
|
| 87 |
tools=[final_answer, get_current_time_in_timezone, image_generation_tool, searchy_tool, visitwpg_tool, get_stocks_price], ## add your tools here (don't remove final answer)
|
| 88 |
-
max_steps=
|
| 89 |
verbosity_level=1,
|
| 90 |
grammar=None,
|
| 91 |
planning_interval=None,
|
|
|
|
| 12 |
import pytz
|
| 13 |
import yaml
|
| 14 |
import yfinance as yf
|
|
|
|
| 15 |
from tools.final_answer import FinalAnswerTool
|
| 16 |
from tools.visit_webpage import VisitWebpageTool
|
| 17 |
from tools.web_search import DuckDuckGoSearchTool # note DuckDuckGoSearchTool from smolagents, anyway: one could load like we do for the text2img tool
|
|
|
|
| 84 |
agent = CodeAgent(
|
| 85 |
model=model,
|
| 86 |
tools=[final_answer, get_current_time_in_timezone, image_generation_tool, searchy_tool, visitwpg_tool, get_stocks_price], ## add your tools here (don't remove final answer)
|
| 87 |
+
max_steps=8,
|
| 88 |
verbosity_level=1,
|
| 89 |
grammar=None,
|
| 90 |
planning_interval=None,
|