AntonVoronko commited on
Commit
09c05af
·
verified ·
1 Parent(s): b49e642

without await

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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