apply lint
This commit is contained in:
parent
645da3d1a6
commit
9a949806d3
|
@ -154,7 +154,9 @@ def load_extras(context: ServerContext):
|
||||||
)
|
)
|
||||||
|
|
||||||
if "type" in model:
|
if "type" in model:
|
||||||
labels[f'{model["type"]}.{model_name}'] = model["label"]
|
labels[f'{model["type"]}.{model_name}'] = model[
|
||||||
|
"label"
|
||||||
|
]
|
||||||
else:
|
else:
|
||||||
labels[model_name] = model["label"]
|
labels[model_name] = model["label"]
|
||||||
|
|
||||||
|
@ -180,10 +182,7 @@ def load_extras(context: ServerContext):
|
||||||
lora_name,
|
lora_name,
|
||||||
model_name,
|
model_name,
|
||||||
)
|
)
|
||||||
labels[
|
labels[f"lora.{lora_name}"] = lora["label"]
|
||||||
f"lora.{lora_name}"
|
|
||||||
] = lora["label"]
|
|
||||||
|
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception("error loading extras file")
|
logger.exception("error loading extras file")
|
||||||
|
|
Loading…
Reference in New Issue