Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -441,7 +441,7 @@ def load_lora_into_cache(lora_path: str) -> StateDict:
|
|
| 441 |
|
| 442 |
# Use safe_open for memory-efficient streaming reads of large files
|
| 443 |
tensors = {}
|
| 444 |
-
with safe_open(lora_path, framework="
|
| 445 |
for key in f.keys():
|
| 446 |
tensors[key] = f.get_tensor(key)
|
| 447 |
|
|
@@ -941,7 +941,7 @@ with gr.Blocks(title="LTX-2.3 Distilled with LoRAs, Negative Prompting, and Adva
|
|
| 941 |
|
| 942 |
negative_prompt = gr.Textbox(
|
| 943 |
label="Negative Prompt",
|
| 944 |
-
value="
|
| 945 |
lines=2,
|
| 946 |
)
|
| 947 |
|
|
|
|
| 441 |
|
| 442 |
# Use safe_open for memory-efficient streaming reads of large files
|
| 443 |
tensors = {}
|
| 444 |
+
with safe_open(lora_path, framework="pt", device="cpu") as f:
|
| 445 |
for key in f.keys():
|
| 446 |
tensors[key] = f.get_tensor(key)
|
| 447 |
|
|
|
|
| 941 |
|
| 942 |
negative_prompt = gr.Textbox(
|
| 943 |
label="Negative Prompt",
|
| 944 |
+
value="worst quality, inconsistent motion, blurry, jittery, distorted, deformed, artifacts, text, watermark, logo, frame, border, low resolution, pixelated, unnatural, fake, CGI, cartoon",
|
| 945 |
lines=2,
|
| 946 |
)
|
| 947 |
|