nugentc commited on
Commit
6f4432b
·
1 Parent(s): 44082c4

join output tokens

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def feedback(text):
31
  else:
32
  suggestion = grammar_tokenizer.batch_decode(corrections[0], clean_up_tokenization_spaces=True, skip_special_tokens=True)
33
  feedback = f'\'{suggestion}\' might be a little better'
34
- return f'{feedback}'
35
 
36
  iface = gr.Interface(
37
  chat,
 
31
  else:
32
  suggestion = grammar_tokenizer.batch_decode(corrections[0], clean_up_tokenization_spaces=True, skip_special_tokens=True)
33
  feedback = f'\'{suggestion}\' might be a little better'
34
+ return f'{feedback.join(" ")}'
35
 
36
  iface = gr.Interface(
37
  chat,