1
0
Fork 0

apply lint

This commit is contained in:
Sean Sube 2023-03-18 21:48:51 -05:00
parent 645da3d1a6
commit 9a949806d3
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 4 additions and 5 deletions

View File

@ -154,7 +154,9 @@ def load_extras(context: ServerContext):
)
if "type" in model:
labels[f'{model["type"]}.{model_name}'] = model["label"]
labels[f'{model["type"]}.{model_name}'] = model[
"label"
]
else:
labels[model_name] = model["label"]
@ -180,10 +182,7 @@ def load_extras(context: ServerContext):
lora_name,
model_name,
)
labels[
f"lora.{lora_name}"
] = lora["label"]
labels[f"lora.{lora_name}"] = lora["label"]
except Exception:
logger.exception("error loading extras file")