Spaces:
Sleeping
Sleeping
Update app.py
Browse files3 unmodified lines45678928 unmodified lines38394041424314 unmodified lines585960616263643 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom Gradio_UI import GradioUI28 unmodified linesfinal_answer = FinalAnswerTool()# 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 linesagent = CodeAgent(model=model,tools=[final_answer, get_current_time_in_timezone, search_web, image_generation_tool], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,3 unmodified lines4567891028 unmodified lines3940414243444514 unmodified lines606162636465663 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom tools.visit_webpage import VisitWebpageToolfrom Gradio_UI import GradioUI28 unmodified linesfinal_answer = FinalAnswerTool()visit_webpage = VisitWebpageTool()# 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 linesagent = CodeAgent(model=model,tools=[final_answer, get_current_time_in_timezone, search_web, visit_webpage, image_generation_tool], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+3-1