silveroxides commited on
Commit
5275d33
·
verified ·
1 Parent(s): 237ee28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,6 +7,7 @@ from diffusers import DiffusionPipeline
7
  import torch
8
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
10
  model_repo_id = "stabilityai/stable-diffusion-3.5-large-turbo"
11
 
12
  if torch.cuda.is_available():
@@ -14,7 +15,7 @@ if torch.cuda.is_available():
14
  else:
15
  torch_dtype = torch.float32
16
 
17
- pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
18
  pipe = pipe.to(device)
19
 
20
  MAX_SEED = np.iinfo(np.int32).max
 
7
  import torch
8
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
+ text_encoder_3 = "silveroxides/t5xxl_flan_enc"
11
  model_repo_id = "stabilityai/stable-diffusion-3.5-large-turbo"
12
 
13
  if torch.cuda.is_available():
 
15
  else:
16
  torch_dtype = torch.float32
17
 
18
+ pipe = DiffusionPipeline.from_pretrained(model_repo_id, text_encoder_3=text_encoder_3, torch_dtype=torch_dtype)
19
  pipe = pipe.to(device)
20
 
21
  MAX_SEED = np.iinfo(np.int32).max