wenhu commited on
Commit
513f815
1 Parent(s): 3c44d12

Update model/model_manager.py

Browse files
Files changed (1) hide show
  1. model/model_manager.py +2 -0
model/model_manager.py CHANGED
@@ -49,6 +49,7 @@ class ModelManager:
49
  @spaces.GPU(duration=120)
50
  def generate_image_ig(self, prompt, model_name):
51
  if self.NSFW_filter(prompt) == 'safe':
 
52
  pipe = self.load_model_pipe(model_name)
53
  result = pipe(prompt=prompt)
54
  else:
@@ -57,6 +58,7 @@ class ModelManager:
57
 
58
  def generate_image_ig_api(self, prompt, model_name):
59
  if self.NSFW_filter(prompt) == 'safe':
 
60
  pipe = self.load_model_pipe(model_name)
61
  result = pipe(prompt=prompt)
62
  else:
 
49
  @spaces.GPU(duration=120)
50
  def generate_image_ig(self, prompt, model_name):
51
  if self.NSFW_filter(prompt) == 'safe':
52
+ print('The prompt is safe')
53
  pipe = self.load_model_pipe(model_name)
54
  result = pipe(prompt=prompt)
55
  else:
 
58
 
59
  def generate_image_ig_api(self, prompt, model_name):
60
  if self.NSFW_filter(prompt) == 'safe':
61
+ print('The prompt is safe')
62
  pipe = self.load_model_pipe(model_name)
63
  result = pipe(prompt=prompt)
64
  else: