ford442 commited on
Commit
c63126b
·
1 Parent(s): 4592308

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(device=device)
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