Update app.py
Browse filesGot rid of run() and am calling the agent directly instead
app.py
CHANGED
@@ -40,7 +40,7 @@ class BasicAgent:
|
|
40 |
def __call__(self, question: str) -> str:
|
41 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
42 |
# fixed_answer = "This is a default answer."
|
43 |
-
fixed_answer = self.agent
|
44 |
# print(f"Agent answered How are you today as: {self.agent.run('How are you today?')}")
|
45 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
46 |
return fixed_answer
|
|
|
40 |
def __call__(self, question: str) -> str:
|
41 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
42 |
# fixed_answer = "This is a default answer."
|
43 |
+
fixed_answer = self.agent(question)
|
44 |
# print(f"Agent answered How are you today as: {self.agent.run('How are you today?')}")
|
45 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
46 |
return fixed_answer
|