ford442 commited on
Commit
ceade43
·
1 Parent(s): 3ee52ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,8 +124,8 @@ def load_and_prepare_model(model_id):
124
  # pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
125
 
126
  pipe.unet = pipeX.unet
127
- pipe.to(dtype=torch.bfloat16)
128
  pipe.to(device)
 
129
 
130
  #pipe.to(device, dtype=torch.bfloat16)
131
  #del pipeX
 
124
  # pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
125
 
126
  pipe.unet = pipeX.unet
 
127
  pipe.to(device)
128
+ pipe.to(dtype=torch.bfloat16)
129
 
130
  #pipe.to(device, dtype=torch.bfloat16)
131
  #del pipeX