Ankur Goyal commited on
Commit
e971d5f
1 Parent(s): 60bdd81

Remove LRU cache

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -37,7 +37,6 @@ def construct_pipeline(model):
37
  return ret
38
 
39
 
40
- @functools.lru_cache(1024)
41
  def run_pipeline(model, question, document, top_k):
42
  pipeline = construct_pipeline(model)
43
  return pipeline(question=question, **document.context, top_k=top_k)
 
37
  return ret
38
 
39
 
 
40
  def run_pipeline(model, question, document, top_k):
41
  pipeline = construct_pipeline(model)
42
  return pipeline(question=question, **document.context, top_k=top_k)