Artples commited on
Commit
8f603cc
·
verified ·
1 Parent(s): 7a0eb63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,7 +11,7 @@ import spaces
11
  import torch
12
  from diffusers import DiffusionPipeline
13
 
14
- DESCRIPTION = """# Playground v2.5"""
15
  if not torch.cuda.is_available():
16
  DESCRIPTION += "\n<p>Running on CPU 🥶 This demo may not work on CPU.</p>"
17
 
@@ -23,11 +23,11 @@ ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD", "0") == "1"
23
 
24
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
25
 
26
- NUM_IMAGES_PER_PROMPT = 1
27
 
28
  if torch.cuda.is_available():
29
  pipe = DiffusionPipeline.from_pretrained(
30
- "playgroundai/playground-v2.5-1024px-aesthetic",
31
  torch_dtype=torch.float16,
32
  use_safetensors=True,
33
  add_watermarker=False,
 
11
  import torch
12
  from diffusers import DiffusionPipeline
13
 
14
+ DESCRIPTION = """# Dall E 3 XL"""
15
  if not torch.cuda.is_available():
16
  DESCRIPTION += "\n<p>Running on CPU 🥶 This demo may not work on CPU.</p>"
17
 
 
23
 
24
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
25
 
26
+ NUM_IMAGES_PER_PROMPT = 4
27
 
28
  if torch.cuda.is_available():
29
  pipe = DiffusionPipeline.from_pretrained(
30
+ "ehristoforu/dalle-3-xl",
31
  torch_dtype=torch.float16,
32
  use_safetensors=True,
33
  add_watermarker=False,