BILLY12138 commited on
Commit
fc3d45b
1 Parent(s): 95f0824

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- #import spaces
2
  import gradio as gr
3
  import torch
4
  from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel
@@ -79,7 +79,7 @@ if SAFETY_CHECKER:
79
  return images, has_nsfw_concepts
80
 
81
 
82
- #@spaces.GPU(enable_queue=True)
83
  def generate_image(
84
  prompt,
85
  negative_prompt,
 
1
+ import spaces
2
  import gradio as gr
3
  import torch
4
  from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel
 
79
  return images, has_nsfw_concepts
80
 
81
 
82
+ @spaces.GPU(enable_queue=True)
83
  def generate_image(
84
  prompt,
85
  negative_prompt,