Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,8 +28,8 @@ class BasicAgent:
|
|
| 28 |
def __call__(self, question: str) -> str:
|
| 29 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 30 |
fixed_answer = self.agent.run(
|
| 31 |
-
f"Answer the following question: {question
|
| 32 |
-
)
|
| 33 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 34 |
return fixed_answer
|
| 35 |
|
|
|
|
| 28 |
def __call__(self, question: str) -> str:
|
| 29 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 30 |
fixed_answer = self.agent.run(
|
| 31 |
+
f"Answer the following question: {question}"
|
| 32 |
+
).content
|
| 33 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 34 |
return fixed_answer
|
| 35 |
|