From a9456f4a16fefeb59ff5ad447960607b2bfbfb52 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sat, 18 Mar 2023 13:47:39 -0500 Subject: [PATCH] fix(api): bump default model cache to 5 (#242) --- api/onnx_web/params.py | 2 +- api/onnx_web/server/context.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/onnx_web/params.py b/api/onnx_web/params.py index 431745fd..b8f3cf74 100644 --- a/api/onnx_web/params.py +++ b/api/onnx_web/params.py @@ -113,7 +113,7 @@ class DeviceParams: else: return (self.provider, self.options) - def sess_options(self, cache = True) -> SessionOptions: + def sess_options(self, cache=True) -> SessionOptions: if cache and self.sess_options_cache is not None: return self.sess_options_cache diff --git a/api/onnx_web/server/context.py b/api/onnx_web/server/context.py index 5b459ecc..1fa73ba2 100644 --- a/api/onnx_web/server/context.py +++ b/api/onnx_web/server/context.py @@ -7,7 +7,7 @@ from .model_cache import ModelCache logger = getLogger(__name__) -DEFAULT_CACHE_LIMIT = 2 +DEFAULT_CACHE_LIMIT = 5 DEFAULT_JOB_LIMIT = 10 DEFAULT_IMAGE_FORMAT = "png"