Spaces:
Running on Zero
Running on Zero
Commit ·
fcd835d
1
Parent(s): 641abbc
Force LoRA widget names
Browse files
app.py
CHANGED
|
@@ -417,11 +417,13 @@ def _convert_workflow(visual_path: str) -> dict[str, Any]:
|
|
| 417 |
inputs.setdefault(key, value)
|
| 418 |
|
| 419 |
if class_type == "LTX2LoraLoaderAdvanced":
|
|
|
|
|
|
|
|
|
|
| 420 |
inputs.setdefault("opt_lora_path", "")
|
| 421 |
inputs.setdefault("blocks", "")
|
| 422 |
if inputs.get("lora_name") is None:
|
| 423 |
-
|
| 424 |
-
inputs["lora_name"] = widget_values[0] if widget_values else ""
|
| 425 |
|
| 426 |
api[node_key] = {"class_type": class_type, "inputs": inputs}
|
| 427 |
|
|
|
|
| 417 |
inputs.setdefault(key, value)
|
| 418 |
|
| 419 |
if class_type == "LTX2LoraLoaderAdvanced":
|
| 420 |
+
widget_values = node.get("widgets_values") or []
|
| 421 |
+
if widget_values:
|
| 422 |
+
inputs["lora_name"] = widget_values[0]
|
| 423 |
inputs.setdefault("opt_lora_path", "")
|
| 424 |
inputs.setdefault("blocks", "")
|
| 425 |
if inputs.get("lora_name") is None:
|
| 426 |
+
inputs["lora_name"] = ""
|
|
|
|
| 427 |
|
| 428 |
api[node_key] = {"class_type": class_type, "inputs": inputs}
|
| 429 |
|