Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ def infer (custom_model, weight_name, prompt, inf_steps, guidance_scale, seed, l
|
|
| 88 |
use_auth_token = True
|
| 89 |
)
|
| 90 |
|
| 91 |
-
pipe.fuse_lora(lora_weight)
|
| 92 |
|
| 93 |
if seed < 0 :
|
| 94 |
seed = random.randint(0, 423538377342)
|
|
@@ -103,7 +103,7 @@ def infer (custom_model, weight_name, prompt, inf_steps, guidance_scale, seed, l
|
|
| 103 |
cross_attention_kwargs={"scale": lora_weight}
|
| 104 |
).images[0]
|
| 105 |
|
| 106 |
-
pipe.unfuse_lora()
|
| 107 |
|
| 108 |
return image
|
| 109 |
|
|
|
|
| 88 |
use_auth_token = True
|
| 89 |
)
|
| 90 |
|
| 91 |
+
#pipe.fuse_lora(lora_weight)
|
| 92 |
|
| 93 |
if seed < 0 :
|
| 94 |
seed = random.randint(0, 423538377342)
|
|
|
|
| 103 |
cross_attention_kwargs={"scale": lora_weight}
|
| 104 |
).images[0]
|
| 105 |
|
| 106 |
+
#pipe.unfuse_lora()
|
| 107 |
|
| 108 |
return image
|
| 109 |
|