Spaces:
Running
on
Zero
Running
on
Zero
amazonaws-la
commited on
Commit
•
1bbb498
1
Parent(s):
1e95d75
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def generate(
|
|
55 |
lora = 'amazonaws-la/juliette',
|
56 |
) -> PIL.Image.Image:
|
57 |
if torch.cuda.is_available():
|
58 |
-
pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16
|
59 |
|
60 |
if use_lora:
|
61 |
pipe.load_lora_weights(lora)
|
|
|
55 |
lora = 'amazonaws-la/juliette',
|
56 |
) -> PIL.Image.Image:
|
57 |
if torch.cuda.is_available():
|
58 |
+
pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
59 |
|
60 |
if use_lora:
|
61 |
pipe.load_lora_weights(lora)
|