Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ class BasicAgent:
|
|
| 38 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 39 |
|
| 40 |
if len(question) > 400:
|
| 41 |
-
question = self.
|
| 42 |
|
| 43 |
answer = self.agent.ask(prompt + question)
|
| 44 |
print(f"Agent returning answer: {str(answer)}")
|
|
|
|
| 38 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 39 |
|
| 40 |
if len(question) > 400:
|
| 41 |
+
question = self.summarize(question)
|
| 42 |
|
| 43 |
answer = self.agent.ask(prompt + question)
|
| 44 |
print(f"Agent returning answer: {str(answer)}")
|