Spaces:
Sleeping
Sleeping
Update app.py
Browse files4 unmodified lines56788910115 unmodified lines17181920202122234 unmodified linesimport pandas as pdimport smolagentsfrom smolagents import CodeAgent, GoogleSearchTool, HfApiModel, VisitWebpageToolfrom smol_agents.tools.python import PythonREPLTool#from smol_agents.tools.python import PythonREPLTool
# (Keep Constants as is)# --- Constants ---5 unmodified lines def __init__(self): model = HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct") #, provider="together") self.agent = CodeAgent( tools=[GoogleSearchTool(), PythonREPLTool()], tools=[GoogleSearchTool()]#, PythonREPLTool()], model=model, add_base_tools=True, # Add any additional base tools max_steps=15,app.py+2-2