fffiloni commited on
Commit
8d5c6a5
1 Parent(s): 0473e4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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",