Spaces:
Sleeping
Sleeping
David Cardoner commited on
Commit ·
868484a
1
Parent(s): ae7a494
First change
Browse files3 unmodified lines45678925 unmodified lines35363738394014 unmodified lines555657585960613 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom Gradio_UI import GradioUI25 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], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,3 unmodified lines456789101125 unmodified lines373839404142434414 unmodified lines596061626364653 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom tools.visit_webpage import VisitWebpageToolfrom tools.web_search import DuckDuckGoSearchToolfrom Gradio_UI import GradioUI25 unmodified linesfinal_answer = FinalAnswerTool()duckduckgo_search = DuckDuckGoSearchTool()web_search = 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=[web_search, duckduckgo_search, final_answer], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+5-1