Commit
·
da79104
1
Parent(s):
0bd8e1d
reduce cache size
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def predict(inputs):
|
|
65 |
return _predict(str(inputs))
|
66 |
|
67 |
|
68 |
-
@lru_cache()
|
69 |
def _predict(inputs):
|
70 |
data = load_manifest(inputs)
|
71 |
urls = get_image_urls_from_manifest(data)
|
|
|
65 |
return _predict(str(inputs))
|
66 |
|
67 |
|
68 |
+
@lru_cache(maxsize=100)
|
69 |
def _predict(inputs):
|
70 |
data = load_manifest(inputs)
|
71 |
urls = get_image_urls_from_manifest(data)
|