Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
from diffusers import StableDiffusionXLPipeline, DDIMScheduler
|
3 |
import torch
|
4 |
import sa_handler
|
@@ -26,6 +27,7 @@ sa_args = sa_handler.StyleAlignedArgs(share_group_norm=False,
|
|
26 |
handler.register(sa_args, )
|
27 |
|
28 |
# Define the function to generate style-aligned images
|
|
|
29 |
def style_aligned_sdxl(initial_prompt1, initial_prompt2, initial_prompt3, initial_prompt4, initial_prompt5, style_prompt):
|
30 |
try:
|
31 |
# Combine the style prompt with each initial prompt
|
|
|
1 |
import gradio as gr
|
2 |
+
import spaces
|
3 |
from diffusers import StableDiffusionXLPipeline, DDIMScheduler
|
4 |
import torch
|
5 |
import sa_handler
|
|
|
27 |
handler.register(sa_args, )
|
28 |
|
29 |
# Define the function to generate style-aligned images
|
30 |
+
@spaces.GPU
|
31 |
def style_aligned_sdxl(initial_prompt1, initial_prompt2, initial_prompt3, initial_prompt4, initial_prompt5, style_prompt):
|
32 |
try:
|
33 |
# Combine the style prompt with each initial prompt
|