Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -32,12 +32,9 @@ JS = """function () {
|
|
32 |
}
|
33 |
}"""
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
pipe.fuse_lora(lora_scale=0.9)
|
39 |
-
|
40 |
-
|
41 |
|
42 |
def scrape_lora_link(url):
|
43 |
try:
|
|
|
32 |
}
|
33 |
}"""
|
34 |
|
35 |
+
pipe = FluxPipeline.from_pretrained(model, torch_dtype=torch.bfloat16)
|
36 |
+
pipe.load_lora_weights(default_lora, weight_name = default_weight_name) # default load lora
|
37 |
+
pipe.fuse_lora(lora_scale=0.9)
|
|
|
|
|
|
|
38 |
|
39 |
def scrape_lora_link(url):
|
40 |
try:
|