p1atdev commited on
Commit
e5e0fe8
·
1 Parent(s): 56adc5c

fix: for loop

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def fix_compiled_state_dict(state_dict: dict):
26
 
27
  def get_bad_words_ids(tokenizer: PreTrainedTokenizerFast):
28
  ids = [
29
- [id] for token, id in tokenizer.vocab.items() if any(word in token for BAD_WORD_KEYWORDS)
30
  ]
31
  return ids
32
 
 
26
 
27
  def get_bad_words_ids(tokenizer: PreTrainedTokenizerFast):
28
  ids = [
29
+ [id] for token, id in tokenizer.vocab.items() if any(word in token for word in BAD_WORD_KEYWORDS)
30
  ]
31
  return ids
32