Spaces:
Build error
Build error
join output tokens
Browse files
app.py
CHANGED
@@ -30,8 +30,8 @@ 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 |
-
feedback = f'\'{suggestion}\' might be a little better'
|
34 |
-
return
|
35 |
|
36 |
iface = gr.Interface(
|
37 |
chat,
|
|
|
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 |
+
feedback = f'\'{"".join(suggestion)}\' might be a little better'
|
34 |
+
return feedback
|
35 |
|
36 |
iface = gr.Interface(
|
37 |
chat,
|