Cxxs commited on
Commit
1f60d3b
·
1 Parent(s): e157e7f

add input check

Browse files
Files changed (1) hide show
  1. prompt_check.py +2 -0
prompt_check.py CHANGED
@@ -32,4 +32,6 @@ def is_unsafe_prompt(model, tokenizer, user_prompt):
32
 
33
  content = tokenizer.decode(output_ids, skip_special_tokens=True).strip("\n")
34
 
 
 
35
  return "yes" in content.lower()
 
32
 
33
  content = tokenizer.decode(output_ids, skip_special_tokens=True).strip("\n")
34
 
35
+ print(content)
36
+
37
  return "yes" in content.lower()