Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,6 +56,7 @@ def generate(
|
|
| 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)
|
|
|
|
| 56 |
) -> PIL.Image.Image:
|
| 57 |
if torch.cuda.is_available():
|
| 58 |
pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
| 59 |
+
pipeline.scheduler = DPMSolverMultistepScheduler.from_config(pipeline.scheduler.config)
|
| 60 |
|
| 61 |
if use_lora:
|
| 62 |
pipe.load_lora_weights(lora)
|