Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,7 @@ def load_and_prepare_model(model_id):
|
|
136 |
pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
137 |
#pipe.unet.to(torch.bfloat16)
|
138 |
#pipe.to(device)
|
139 |
-
pipe.(torch.device("cuda:0"))
|
140 |
#pipe.vae.to(torch.bfloat16)
|
141 |
#pipe.to(torch.bfloat16)
|
142 |
#pipe.to(device, torch.bfloat16)
|
|
|
136 |
pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
137 |
#pipe.unet.to(torch.bfloat16)
|
138 |
#pipe.to(device)
|
139 |
+
pipe.to(torch.device("cuda:0"))
|
140 |
#pipe.vae.to(torch.bfloat16)
|
141 |
#pipe.to(torch.bfloat16)
|
142 |
#pipe.to(device, torch.bfloat16)
|