Spaces:
Running on Zero
Running on Zero
Commit ·
1d47533
1
Parent(s): fcd835d
Use absolute LoRA paths
Browse files
app.py
CHANGED
|
@@ -420,7 +420,9 @@ def _convert_workflow(visual_path: str) -> dict[str, Any]:
|
|
| 420 |
widget_values = node.get("widgets_values") or []
|
| 421 |
if widget_values:
|
| 422 |
inputs["lora_name"] = widget_values[0]
|
| 423 |
-
|
|
|
|
|
|
|
| 424 |
inputs.setdefault("blocks", "")
|
| 425 |
if inputs.get("lora_name") is None:
|
| 426 |
inputs["lora_name"] = ""
|
|
|
|
| 420 |
widget_values = node.get("widgets_values") or []
|
| 421 |
if widget_values:
|
| 422 |
inputs["lora_name"] = widget_values[0]
|
| 423 |
+
inputs["opt_lora_path"] = str(MODELS / "loras" / widget_values[0].replace("\\", "/"))
|
| 424 |
+
else:
|
| 425 |
+
inputs.setdefault("opt_lora_path", "")
|
| 426 |
inputs.setdefault("blocks", "")
|
| 427 |
if inputs.get("lora_name") is None:
|
| 428 |
inputs["lora_name"] = ""
|