Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
from diffusers import StableDiffusionXLPipeline, DDIMScheduler
|
4 |
import torch
|
@@ -29,6 +30,7 @@ handler.register(sa_args, )
|
|
29 |
|
30 |
# run StyleAligned
|
31 |
|
|
|
32 |
def infer(prompts):
|
33 |
sets_of_prompts = [
|
34 |
"a toy train. macro photo. 3d game asset",
|
|
|
1 |
import gradio as gr
|
2 |
+
import spaces
|
3 |
|
4 |
from diffusers import StableDiffusionXLPipeline, DDIMScheduler
|
5 |
import torch
|
|
|
30 |
|
31 |
# run StyleAligned
|
32 |
|
33 |
+
@spaces.GPU
|
34 |
def infer(prompts):
|
35 |
sets_of_prompts = [
|
36 |
"a toy train. macro photo. 3d game asset",
|