ANASAKHTAR commited on
Commit
1ed81f8
·
verified ·
1 Parent(s): 487edc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def image_generation(prompt):
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
 
11
  # Load the Stable Diffusion 2.1 pipeline (as you're using DiffusionPipeline now)
12
- pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1",
13
  torch_dtype=torch.float16 if device == "cuda" else torch.float32,
14
  text_encoder_3=None,
15
  tokenizer_3=None)
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
 
11
  # Load the Stable Diffusion 2.1 pipeline (as you're using DiffusionPipeline now)
12
+ pipeline = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo",
13
  torch_dtype=torch.float16 if device == "cuda" else torch.float32,
14
  text_encoder_3=None,
15
  tokenizer_3=None)