long candy support

This commit is contained in:
meelstorm
2025-08-28 16:30:52 +02:00
parent bf13a5ea2d
commit d52c844b5d
24 changed files with 1714 additions and 16 deletions

View File

@@ -43,6 +43,9 @@ class Service:
return 0
def load_model(self, path, name):
if name in self.models:
# Model already loaded, skip loading
return 0
self.models[name] = tf.keras.models.load_model(path)
return 0
@@ -156,3 +159,4 @@ async def get_output_size():
raise HTTPException(status_code=500, detail=str(e))