Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,8 +31,8 @@ class BasicAgent:
|
|
| 31 |
return answer
|
| 32 |
|
| 33 |
def __call__(self, question: str) -> str:
|
| 34 |
-
return smart_agent(question, self.api_key)
|
| 35 |
-
|
| 36 |
#print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 37 |
#fixed_answer = "This is a default answer."
|
| 38 |
#fixed_answer = self.llamaindex_agent.run(question)
|
|
|
|
| 31 |
return answer
|
| 32 |
|
| 33 |
def __call__(self, question: str) -> str:
|
| 34 |
+
#return smart_agent(question, self.api_key)
|
| 35 |
+
return asyncio.run(smart_agent(question, self.api_key))
|
| 36 |
#print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 37 |
#fixed_answer = "This is a default answer."
|
| 38 |
#fixed_answer = self.llamaindex_agent.run(question)
|