Update app.py
Browse files1 unmodified line234567844 unmodified lines5354555657585916 unmodified lines767778798081828 unmodified lines919293941 unmodified lineimport datetimeimport requestsimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom Gradio_UI import GradioUI44 unmodified lines# Load all pre-made tools from Smol Librarysearch_tool = DuckDuckGoSearchTool()image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)data_extraction_tool = load_tool("agents-course/data-extraction", trust_remote_code=True)code_execution_tool = load_tool("agents-course/code-execution", trust_remote_code=True)# Load model16 unmodified linesfinal_answer,search_tool,image_generation_tool,data_extraction_tool,code_execution_tool,fetch_weather,get_current_time_in_timezone8 unmodified lines)# Launch Gradio UIGradioUI(agent).launch()1 unmodified line234567844 unmodified lines53545556575816 unmodified lines7576777879808 unmodified lines899091921 unmodified lineimport datetimeimport requestsimport pytzyamlfrom tools.final_answer import FinalAnswerToolfrom Gradio_UI import GradioUI44 unmodified lines# Load all pre-made tools from Smol Librarysearch_tool = DuckDuckGoSearchTool()image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)code_execution_tool = load_tool("agents-course/code-execution", trust_remote_code=True)# Load model16 unmodified linesfinal_answer,search_tool,image_generation_tool,code_execution_tool,fetch_weather,get_current_time_in_timezone8 unmodified lines)# Launch Gradio UIGradioUI(agent).launch()
app.py+2-4