chore: Bump version to 0.12.6, update BlendJob wheel to 0.1.8, and revise documentation for model catalog and server integration
Some checks failed
构建扩展 / build (push) Failing after 14s
Some checks failed
构建扩展 / build (push) Failing after 14s
This commit is contained in:
@@ -3,7 +3,7 @@ import time
|
||||
from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
|
||||
import model_catalog
|
||||
from . import model_catalog
|
||||
from .model_download import download_model
|
||||
|
||||
|
||||
@@ -144,11 +144,7 @@ class ModelManager:
|
||||
return self.sessions.get_moge2(model_dir, device)
|
||||
|
||||
def snapshot(self):
|
||||
catalog = [
|
||||
model_catalog.model_record(model, self.ready(model.key))
|
||||
for model in model_catalog.DOWNLOADABLE_MODELS.values()
|
||||
]
|
||||
return {"loaded": self.sessions.snapshot(), "catalog": catalog}
|
||||
return {"loaded": self.sessions.snapshot()}
|
||||
|
||||
def clear(self):
|
||||
self.sessions.close()
|
||||
|
||||
Reference in New Issue
Block a user