wenhu commited on
Commit
c4c1eb9
·
verified ·
1 Parent(s): ff4227c

Update model/model_manager.py

Browse files
Files changed (1) hide show
  1. model/model_manager.py +2 -0
model/model_manager.py CHANGED
@@ -66,6 +66,7 @@ class ModelManager:
66
  pipe = self.load_model_pipe(model_name)
67
  result = pipe(prompt=prompt)
68
  else:
 
69
  result = ''
70
  return result
71
 
@@ -75,6 +76,7 @@ class ModelManager:
75
  pipe = self.load_model_pipe(model_name)
76
  result = pipe(prompt=prompt)
77
  else:
 
78
  result = ''
79
  return result
80
 
 
66
  pipe = self.load_model_pipe(model_name)
67
  result = pipe(prompt=prompt)
68
  else:
69
+ print(f'The prompt "{prompt}" is not safe')
70
  result = ''
71
  return result
72
 
 
76
  pipe = self.load_model_pipe(model_name)
77
  result = pipe(prompt=prompt)
78
  else:
79
+ print(f'The prompt "{prompt}" is not safe')
80
  result = ''
81
  return result
82