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