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