Spaces:
Build error
Build error
join output tokens
Browse files
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,
|