Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ class BasicAgent:
|
|
| 34 |
def __call__(self, question: str) -> str:
|
| 35 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 36 |
#fixed_answer = "This is a default answer."
|
| 37 |
-
fixed_answer = self.llamaindex_agent.run(question, ctx = context)
|
| 38 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 39 |
return fixed_answer
|
| 40 |
|
|
|
|
| 34 |
def __call__(self, question: str) -> str:
|
| 35 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 36 |
#fixed_answer = "This is a default answer."
|
| 37 |
+
fixed_answer = self.llamaindex_agent.run(question, ctx = self.context)
|
| 38 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 39 |
return fixed_answer
|
| 40 |
|