PengWeixuanSZU commited on
Commit
623bc9f
·
verified ·
1 Parent(s): 87a6af3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -50,6 +50,7 @@ def get_prompt(file:str):
50
  a=f.readlines()
51
  return a #a[0]:positive prompt, a[1] negative prompt
52
 
 
53
  def init_pipe():
54
  def unwarp_model(state_dict):
55
  new_state_dict = {}
@@ -124,7 +125,7 @@ def init_pipe():
124
  pipe.enable_model_cpu_offload()
125
 
126
  return pipe
127
-
128
  def inference(source_images,
129
  target_images,
130
  text_prompt, negative_prompt,
 
50
  a=f.readlines()
51
  return a #a[0]:positive prompt, a[1] negative prompt
52
 
53
+ @spaces.GPU
54
  def init_pipe():
55
  def unwarp_model(state_dict):
56
  new_state_dict = {}
 
125
  pipe.enable_model_cpu_offload()
126
 
127
  return pipe
128
+ @spaces.GPU
129
  def inference(source_images,
130
  target_images,
131
  text_prompt, negative_prompt,