Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def load_and_prepare_model(model_id):
|
|
| 125 |
#sched = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 126 |
pipe.scheduler=sched
|
| 127 |
#pipe.to(device=device, dtype=torch.bfloat16)
|
| 128 |
-
pipe.to(
|
| 129 |
return pipe
|
| 130 |
|
| 131 |
# Preload and compile both models
|
|
|
|
| 125 |
#sched = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 126 |
pipe.scheduler=sched
|
| 127 |
#pipe.to(device=device, dtype=torch.bfloat16)
|
| 128 |
+
pipe.to('cuda')
|
| 129 |
return pipe
|
| 130 |
|
| 131 |
# Preload and compile both models
|