vinesmsuic commited on
Commit
c5b12d7
·
1 Parent(s): 792a25d

Change duration

Browse files
Files changed (1) hide show
  1. model/model_manager.py +3 -3
model/model_manager.py CHANGED
@@ -130,7 +130,7 @@ class ModelManager:
130
  # guard is disabled
131
  return "safe"
132
 
133
- @spaces.GPU(duration=120)
134
  def generate_image_ig(self, prompt, model_name):
135
  # if 'unsafe' not in self.NSFW_filter(prompt):
136
  print('The prompt is safe')
@@ -209,7 +209,7 @@ class ModelManager:
209
  return image_links[0], image_links[1], prompt_list[0]
210
 
211
 
212
- @spaces.GPU(duration=200)
213
  def generate_image_ie(self, textbox_source, textbox_target, textbox_instruct, source_image, model_name):
214
  # if 'unsafe' not in self.NSFW_filter(" ".join([textbox_source, textbox_target, textbox_instruct])):
215
  pipe = self.load_model_pipe(model_name)
@@ -277,7 +277,7 @@ class ModelManager:
277
  # prompt_list = [source_caption, target_caption, instruction]
278
  return image_links[0], image_links[1], image_links[2], prompt_list[0], prompt_list[1], prompt_list[2], model_names[0], model_names[1]
279
 
280
- @spaces.GPU(duration=150)
281
  def generate_video_vg(self, prompt, model_name):
282
  # if 'unsafe' not in self.NSFW_filter(prompt):
283
  pipe = self.load_model_pipe(model_name)
 
130
  # guard is disabled
131
  return "safe"
132
 
133
+ @spaces.GPU(duration=180)
134
  def generate_image_ig(self, prompt, model_name):
135
  # if 'unsafe' not in self.NSFW_filter(prompt):
136
  print('The prompt is safe')
 
209
  return image_links[0], image_links[1], prompt_list[0]
210
 
211
 
212
+ @spaces.GPU(duration=180)
213
  def generate_image_ie(self, textbox_source, textbox_target, textbox_instruct, source_image, model_name):
214
  # if 'unsafe' not in self.NSFW_filter(" ".join([textbox_source, textbox_target, textbox_instruct])):
215
  pipe = self.load_model_pipe(model_name)
 
277
  # prompt_list = [source_caption, target_caption, instruction]
278
  return image_links[0], image_links[1], image_links[2], prompt_list[0], prompt_list[1], prompt_list[2], model_names[0], model_names[1]
279
 
280
+ @spaces.GPU(duration=180)
281
  def generate_video_vg(self, prompt, model_name):
282
  # if 'unsafe' not in self.NSFW_filter(prompt):
283
  pipe = self.load_model_pipe(model_name)