Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,12 +39,7 @@ class BasicAgent:
|
|
| 39 |
return answer
|
| 40 |
|
| 41 |
def __call__(self, question: str) -> str:
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
try:
|
| 45 |
-
return asyncio.get_event_loop().run_until_complete(self.run(question))
|
| 46 |
-
except RuntimeError:
|
| 47 |
-
return asyncio.run(self.run(question))
|
| 48 |
|
| 49 |
|
| 50 |
#print(f"Agent received question (first 50 chars): {question[:50]}...")
|
|
|
|
| 39 |
return answer
|
| 40 |
|
| 41 |
def __call__(self, question: str) -> str:
|
| 42 |
+
return self.run(question)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
#print(f"Agent received question (first 50 chars): {question[:50]}...")
|