Spaces:
Sleeping
Sleeping
Update app.py
Browse files4 unmodified lines567889101111 unmodified lines232425262627282829303133 unmodified lines65666768686970714 unmodified linesimport yamlfrom tools.final_answer import FinalAnswerToolfrom llama_index.tools.wikipedia import WikipediaToolSpecfrom llama_index.agent.openai import OpenAIAgent#from llama_index.agent.openai import OpenAIAgent
from Gradio_UI import GradioUI
11 unmodified lines
tool_spec = WikipediaToolSpec()
agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())#agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
agent.chat("Who is Ben Afflecks spouse?")#agent.chat("Who is Ben Afflecks spouse?")
@tool33 unmodified lines agent = CodeAgent( model=model, tools=[final_answer, get_current_time_in_timezone, image_generation_tool, tool_spec, agent], ## add your tools here (don't remove final answer) 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,app.py+4-4