drop unused diffusion status 'loading' field; cap session gallery

This commit is contained in:
oobabooga 2026-06-24 16:18:14 -03:00
commit 453efa7ae7
5 changed files with 20 additions and 20 deletions

View file

@ -352,11 +352,9 @@ class DiffusionBackend:
def status(self) -> dict[str, Any]:
state = self._state
loading = self._loading is not None and (self._loading.error is None)
if state is None:
return {
"loaded": False,
"loading": loading,
"repo_id": None,
"family": None,
"base_repo": None,
@ -366,7 +364,6 @@ class DiffusionBackend:
}
return {
"loaded": True,
"loading": loading,
"repo_id": state.repo_id,
"family": state.family.name,
"base_repo": state.base_repo,