Spaces:
Sleeping
Sleeping
Update app.py
Browse files23 unmodified lines242526272829302 unmodified lines33343536373839404123 unmodified lineswith open("prompts.yaml", 'r') as stream:prompt_templates = yaml.safe_load(stream)master_agent = CodeAgent(tools=[websearchtool, visit_webpage],model=model,add_base_tools=True,2 unmodified linesprompt_templates=prompt_templates,)print("BasicAgent initialized.")def __call__(self, question: str) -> str:print(f"Agent received question (first 50 chars): {question[:50]}...")agent_answer = master_agent.run(question)print(f"Agent answer: {agent_answer}")return agent_answer23 unmodified lines242526272829302 unmodified lines3334353637383940414223 unmodified lineswith open("prompts.yaml", 'r') as stream:prompt_templates = yaml.safe_load(stream)self.master_agent = CodeAgent(tools=[websearchtool, visit_webpage],model=model,add_base_tools=True,2 unmodified linesprompt_templates=prompt_templates,)print("BasicAgent initialized.")def __call__(self, question: str) -> str:print(f"Agent received question (first 50 chars): {question[:50]}...")agent_answer = self.master_agent.run(question)print(f"Agent answer: {agent_answer}")return agent_answer
app.py+3-2