Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ pipeline = StableDiffusion3Pipeline.from_pretrained(
|
|
24 |
).to(device)
|
25 |
|
26 |
# Load the LoRA trained weights once at the start
|
27 |
-
lora_path = "lora_trained_model.
|
28 |
if os.path.exists(lora_path):
|
29 |
try:
|
30 |
pipeline.load_lora_weights(lora_path) # Use the correct method for loading LoRA weights
|
|
|
24 |
).to(device)
|
25 |
|
26 |
# Load the LoRA trained weights once at the start
|
27 |
+
lora_path = "lora_trained_model.pt" # Ensure this file is uploaded in the Space
|
28 |
if os.path.exists(lora_path):
|
29 |
try:
|
30 |
pipeline.load_lora_weights(lora_path) # Use the correct method for loading LoRA weights
|