Spaces:
Sleeping
Sleeping
Update app.py
Browse files3 unmodified lines456789101125 unmodified lines373839404142434414 unmodified lines59606158626364653 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom tools.visit_webpage import VisitWebpageToolfrom tools.web_search import DuckDuckGoSearchTool
from Gradio_UI import GradioUI
25 unmodified lines
final_answer = FinalAnswerTool()visit_webpage = VisitWebpageTool()web_search = DuckDuckGoSearchTool()
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud' 14 unmodified lines agent = CodeAgent( model=model, tools=[final_answer], ## add your tools here (don't remove final answer) tools=[final_answer, visit_webpage, web_search], ## add your tools here (don't remove final answer) max_steps=6, verbosity_level=1, grammar=None,app.py+5-1