nugentc commited on
Commit
7617e7e
·
1 Parent(s): 34a301f

fix list comp

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def feedback(text):
30
  feedback = f'Looks good! Keep up the good work'
31
  else:
32
  suggestion = grammar_tokenizer.batch_decode(corrections[0], clean_up_tokenization_spaces=True, skip_special_tokens=True)
33
- suggestion = for sug in suggestion if '<' not in sug
34
  feedback = f'\'{" ".join(suggestion)}\' might be a little better'
35
  return feedback
36
 
 
30
  feedback = f'Looks good! Keep up the good work'
31
  else:
32
  suggestion = grammar_tokenizer.batch_decode(corrections[0], clean_up_tokenization_spaces=True, skip_special_tokens=True)
33
+ suggestion = [sug for sug in suggestion if '<' not in sug]
34
  feedback = f'\'{" ".join(suggestion)}\' might be a little better'
35
  return feedback
36