Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,6 @@ if torch.cuda.is_available():
|
|
| 15 |
|
| 16 |
# Use the DPMSolverMultistepScheduler (DPM-Solver++) scheduler here instead
|
| 17 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 18 |
-
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
| 19 |
pipe.to(device)
|
| 20 |
|
| 21 |
def generate(prompt):
|
|
|
|
| 15 |
|
| 16 |
# Use the DPMSolverMultistepScheduler (DPM-Solver++) scheduler here instead
|
| 17 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
|
|
|
| 18 |
pipe.to(device)
|
| 19 |
|
| 20 |
def generate(prompt):
|