Removed lru_cache
Browse files
app.py
CHANGED
|
@@ -58,11 +58,6 @@ class BasicAgent:
|
|
| 58 |
)
|
| 59 |
|
| 60 |
def __call__(self, question: str) -> str:
|
| 61 |
-
# This just calls the cached version
|
| 62 |
-
return self._run_with_cache(question)
|
| 63 |
-
|
| 64 |
-
@lru_cache(maxsize=20)
|
| 65 |
-
def _run_with_cache(self, question: str) -> str:
|
| 66 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 67 |
#fixed_answer = "This is a default answer."
|
| 68 |
#print(f"Agent returning fixed answer: {fixed_answer}")
|
|
|
|
| 58 |
)
|
| 59 |
|
| 60 |
def __call__(self, question: str) -> str:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 62 |
#fixed_answer = "This is a default answer."
|
| 63 |
#print(f"Agent returning fixed answer: {fixed_answer}")
|