ford442 commited on
Commit
c9267f3
·
1 Parent(s): e74e0f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -119,7 +119,8 @@ def load_and_prepare_model(model_id):
119
  )
120
  sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="sde-dpmsolver++")
121
  pipe.scheduler=sched
122
- pipe.to(device=device, dtype=torch.bfloat16)
 
123
  return pipe
124
 
125
  # Preload and compile both models
 
119
  )
120
  sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="sde-dpmsolver++")
121
  pipe.scheduler=sched
122
+ #pipe.to(device=device, dtype=torch.bfloat16)
123
+ pipe.to(device=device)
124
  return pipe
125
 
126
  # Preload and compile both models