Spaces:
Sleeping
Sleeping
Update app.py
Browse filesCorrected some spelling mistakes and reverted the model to the original version.
8 unmodified lines910111213141524 unmodified lines404142434445466 unmodified lines535455565758598 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_cutom_tool(query:str)-> str: #it's import to specify the return type#Keep this format for the description / args / args description but feel free to modify the tool"""A tool that fetches information from a browser.Args:24 unmodified linesmodel = HfApiModel(max_tokens=2096,temperature=0.5,model_id='Qwen/Qwen2.5-Coder-1.5B-Instruct',# it is possible that this model may be overloadedcustom_role_conversions=None,)6 unmodified linesagent = CodeAgent(model=model,tools=[final_answer, my_cutom_tool, get_current_time_in_timezone], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,8 unmodified lines910111213141524 unmodified lines404142434445466 unmodified lines535455565758598 unmodified lines# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_custom_tool(query:str)-> str: #it's import to specify the return type#Keep this format for the description / args / args description but feel free to modify the tool"""A tool that fetches information from a browser.Args:24 unmodified linesmodel = HfApiModel(max_tokens=2096,temperature=0.5,model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloadedcustom_role_conversions=None,)6 unmodified linesagent = CodeAgent(model=model,tools=[final_answer, my_custom_tool, get_current_time_in_timezone], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+3-3