Spaces:
Sleeping
Sleeping
Update app.py
Browse files3 unmodified lines45678910119 unmodified lines2122232425262728293031323331 unmodified lines65666759686970713 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom llama_index.tools.wikipedia import WikipediaToolSpecfrom llama_index.agent.openai import OpenAIAgent
from Gradio_UI import GradioUI
9 unmodified lines return "What magic will you build ?"
tool_spec = WikipediaToolSpec()
agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
#agent.chat("Who is Ben Afflecks spouse?")
@tooldef get_current_time_in_timezone(timezone: str) -> str: """A tool that fetches the current local time in a specified timezone.31 unmodified lines agent = CodeAgent( model=model, tools=[final_answer, get_current_time_in_timezone, image_generation_tool], ## add your tools here (don't remove final answer) tools=[final_answer, get_current_time_in_timezone, image_generation_tool, agent], ## add your tools here (don't remove final answer) max_steps=6, verbosity_level=1, grammar=None,app.py+10-1