ford442 commited on
Commit
9509b8c
·
verified ·
1 Parent(s): 9248a0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -118,8 +118,8 @@ def load_and_prepare_model():
118
 
119
  pipe = load_and_prepare_model()
120
 
121
- text_encoder=CLIPTextModel.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='text_encoder',token=True).to(device)
122
- text_encoder_2=CLIPTextModelWithProjection.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='text_encoder_2',token=True).to(device)
123
 
124
  MAX_SEED = np.iinfo(np.int32).max
125
 
 
118
 
119
  pipe = load_and_prepare_model()
120
 
121
+ text_encoder=CLIPTextModel.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='text_encoder',token=True).to(device=device, dtype=torch.bfloat16)
122
+ text_encoder_2=CLIPTextModelWithProjection.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='text_encoder_2',token=True).to(device=device, dtype=torch.bfloat16)
123
 
124
  MAX_SEED = np.iinfo(np.int32).max
125