Spaces:
Sleeping
Sleeping
Update app.py
Browse files3 unmodified lines45677891010 unmodified lines21222324252627282924252632 unmodified lines59606168626364653 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom llama_index.tools.wikipedia import WikipediaToolSpec#from llama_index.tools.wikipedia import WikipediaToolSpec#from llama_index.agent.openai import OpenAIAgent
from Gradio_UI import GradioUI10 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:32 unmodified lines agent = CodeAgent( model=model, tools=[final_answer, get_current_time_in_timezone, image_generation_tool, tool_spec], ## add your tools here (don't remove final answer) tools=[final_answer, get_current_time_in_timezone, image_generation_tool], ## add your tools here (don't remove final answer) max_steps=6, verbosity_level=1, grammar=None,app.py+2-8