1
0
Fork 0

fix(api): bump default model cache to 5 (#242)

This commit is contained in:
Sean Sube 2023-03-18 13:47:39 -05:00
parent aec540a524
commit a9456f4a16
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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"