Leimingkun commited on
Commit
da92c10
·
1 Parent(s): f136adc

stylestudio

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import sys
2
  sys.path.append("./")
3
  import gradio as gr
 
4
  import torch
5
  from ip_adapter.utils import BLOCKS as BLOCKS
6
  import numpy as np
@@ -84,7 +85,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
84
  if randomize_seed:
85
  seed = random.randint(0, MAX_SEED)
86
  return seed
87
-
88
  def create_image(
89
  style_image_pil,
90
  prompt,
 
1
  import sys
2
  sys.path.append("./")
3
  import gradio as gr
4
+ import spaces
5
  import torch
6
  from ip_adapter.utils import BLOCKS as BLOCKS
7
  import numpy as np
 
85
  if randomize_seed:
86
  seed = random.randint(0, MAX_SEED)
87
  return seed
88
+ @spaces.GPU
89
  def create_image(
90
  style_image_pil,
91
  prompt,