vilarin commited on
Commit
f286ae5
1 Parent(s): 6e61ba6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,8 +10,8 @@ import PIL
10
  base = "stabilityai/stable-diffusion-xl-base-1.0"
11
  repo = "tianweiy/DMD2"
12
  checkpoints = {
13
- "1-Step" : ["dmd2_sdxl_1step_unet_fp16.bin", 1],
14
- "4-Step" : ["dmd2_sdxl_4step_unet_fp16.bin", 4],
15
  }
16
  loaded = None
17
 
@@ -28,7 +28,7 @@ if torch.cuda.is_available():
28
 
29
 
30
  # Function
31
- @spaces.GPU(enable_queue=True)
32
  def generate_image(prompt, ckpt):
33
  global loaded
34
  print(prompt, ckpt)
 
10
  base = "stabilityai/stable-diffusion-xl-base-1.0"
11
  repo = "tianweiy/DMD2"
12
  checkpoints = {
13
+ "1-Step" : ["dmd2_sdxl_1step_unet.bin", 1],
14
+ "4-Step" : ["dmd2_sdxl_4step_unet.bin", 4],
15
  }
16
  loaded = None
17
 
 
28
 
29
 
30
  # Function
31
+ @spaces.GPU()
32
  def generate_image(prompt, ckpt):
33
  global loaded
34
  print(prompt, ckpt)