Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def generate_and_display_image(prompt):
|
|
| 15 |
|
| 16 |
# Set the loaded scheduler in the pipeline
|
| 17 |
pipeline.scheduler = LCMScheduler.from_config(pipeline.scheduler.config)
|
| 18 |
-
|
| 19 |
|
| 20 |
# Set the number of inference steps
|
| 21 |
inference_steps = 4
|
|
|
|
| 15 |
|
| 16 |
# Set the loaded scheduler in the pipeline
|
| 17 |
pipeline.scheduler = LCMScheduler.from_config(pipeline.scheduler.config)
|
| 18 |
+
pipeline.to("cuda")
|
| 19 |
|
| 20 |
# Set the number of inference steps
|
| 21 |
inference_steps = 4
|