Spaces:
Sleeping
Sleeping
Update app.py
Browse files1234538 unmodified lines4445464748495051525315 unmodified lines6970716768697072737475767778from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,toolfrom smolagents.tools import Toolimport datetimeimport requestsimport pytz38 unmodified lines
final_answer = FinalAnswerTool()haleluyaa_cheker_tool = Tool(haleluyaa_cheker.to_string()) get_current_time_in_timezone_tool = Tool(get_current_time_in_timezone.to_string())DuckDuckGoSearch = DuckDuckGoSearchTool()image_generation = image_generation_tool()
# 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' 15 unmodified linesagent = CodeAgent( model=model, tools=[final_answer , get_current_time_in_timezone(), haleluyaa_cheker(), DuckDuckGoSearchTool() , image_generation_tool()], ## add your tools here (don't remove final answer) get_current_time_in_timezone_tool, haleluyaa_cheker_tool, DuckDuckGoSearch , image_generation], ## add your tools here (don't remove final answer) max_steps=6, verbosity_level=1,app.py+9-4