jbilcke-hf HF staff commited on
Commit
bd644f9
·
1 Parent(s): 961fee6

increase LRU cache size

Browse files
Files changed (1) hide show
  1. engine.py +1 -1
engine.py CHANGED
@@ -86,7 +86,7 @@ class Engine:
86
  else:
87
  raise ValueError("Unsupported image type")
88
 
89
- @lru_cache(maxsize=128)
90
  def _process_image(self, image_hash: str) -> Dict[str, Any]:
91
  """
92
  Process the input image and cache the results.
 
86
  else:
87
  raise ValueError("Unsupported image type")
88
 
89
+ @lru_cache(maxsize=256)
90
  def _process_image(self, image_hash: str) -> Dict[str, Any]:
91
  """
92
  Process the input image and cache the results.