mmichiels13 commited on
Commit
882d6c0
·
verified ·
1 Parent(s): f4a3eb5

Removed lru_cache

Browse files
Files changed (1) hide show
  1. app.py +0 -5
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}")