Spaces:
Sleeping
Sleeping
Update app.py
Browse files2 unmodified lines345678923 unmodified lines3334353637383910 unmodified lines50515251535455562 unmodified linesimport requestsimport pytzimport yamlfrom tools.final_answer import FinalAnswerTool
from Gradio_UI import GradioUI
23 unmodified lines return f"Error fetching time for timezone '{timezone}': {str(e)}"
final_answer = FinalAnswerTool()model = HfApiModel(max_tokens=2096,temperature=0.5,10 unmodified lines agent = CodeAgent( model=model, tools=[image_generation_tool,get_current_time_in_timezone,DuckDuckGoSearchTool()], ## add or remove tools here tools=[image_generation_tool,get_current_time_in_timezone,final_answer,DuckDuckGoSearchTool()], ## add or remove tools here max_steps=6, verbosity_level=1, grammar=None,app.py+3-1