Spaces:
Runtime error
Runtime error
Update app.py
Browse files4 unmodified lines56789101152 unmodified lines646566676869707112 unmodified lines848586878889904 unmodified linesimport yamlfrom tools.final_answer import FinalAnswerToolfrom bs4 import BeautifulSoupfrom Gradio_UI import GradioUI# Below is an example of a tool that does nothing. Amaze us with your creativity !52 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 = HfApiModel(12 unmodified linesagent = CodeAgent(model=model,tools=[final_answer], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,4 unmodified lines56789101152 unmodified lines646566676869707112 unmodified lines848586878889904 unmodified linesimport yamlfrom tools.final_answer import FinalAnswerToolfrom bs4 import BeautifulSoupfromfrom Gradio_UI import GradioUI# Below is an example of a tool that does nothing. Amaze us with your creativity !52 unmodified linesfinal_answer = FinalAnswerTool()search_tool = DuckDuckGoSearchTool()# If the agent does search_tool = DuckDuckGoSearchTool() 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 = HfApiModel(12 unmodified linesagent = CodeAgent(model=model,tools=[final_answer,search_tool], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+4-4