Spaces:
Sleeping
Sleeping
Update app.py
Browse files3 unmodified lines4567891010 unmodified lines21222324252627282930313232 unmodified lines656667686970713 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerToolfrom llama_index.tools.wikipedia import WikipediaToolSpec#from llama_index.agent.openai import OpenAIAgentfrom Gradio_UI import GradioUI10 unmodified linesreturn "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 linesagent = 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)max_steps=6,verbosity_level=1,grammar=None,3 unmodified lines4567891010 unmodified lines21222324252632 unmodified lines596061626364653 unmodified linesimport pytzimport yamlfrom tools.final_answer import FinalAnswerTool#from llama_index.tools.wikipedia import WikipediaToolSpec#from llama_index.agent.openai import OpenAIAgentfrom Gradio_UI import GradioUI10 unmodified linesreturn "What magic will you build ?"@tooldef get_current_time_in_timezone(timezone: str) -> str:32 unmodified linesagent = CodeAgent(model=model,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