Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ device=torch.device('cuda')
|
|
11 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
12 |
print(prompt)
|
13 |
|
14 |
-
if style
|
15 |
prompt= "shou_xin, " + prompt
|
16 |
pipe.load_lora_weights("Datou1111/shou_xin", weight_name="shou_xin.safetensors")
|
17 |
else:
|
|
|
11 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
12 |
print(prompt)
|
13 |
|
14 |
+
if style=='shou_xin':
|
15 |
prompt= "shou_xin, " + prompt
|
16 |
pipe.load_lora_weights("Datou1111/shou_xin", weight_name="shou_xin.safetensors")
|
17 |
else:
|