Spaces:
Sleeping
Sleeping
Update app.py
Browse files45 unmodified lines464748494950515212 unmodified lines656667686869707145 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' # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
model = HfApiModel(max_tokens=2096,12 unmodified lines agent = CodeAgent( model=model, tools=[final_answer, image_generation_tool], ## add your tools here (don't remove final answer) tools=[final_answer, image_generation_tool, calculator], ## add your tools here (don't remove final answer) max_steps=6, verbosity_level=1, grammar=None,app.py+2-2