Spaces:
Paused
Paused
Julian Bilcke commited on
Commit ·
bd644f9
1
Parent(s): 961fee6
increase LRU cache size
Browse files
engine.py
CHANGED
|
@@ -86,7 +86,7 @@ class Engine:
|
|
| 86 |
else:
|
| 87 |
raise ValueError("Unsupported image type")
|
| 88 |
|
| 89 |
-
@lru_cache(maxsize=
|
| 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.
|