ford442 commited on
Commit
450ed32
Β·
1 Parent(s): 6524df3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -119,7 +119,7 @@ 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)
123
  return pipe
124
 
125
  # Preload and compile both models