Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,8 @@ def translate(text, num_beams=4, num_return_sequences=4):
|
|
23 |
for translation in tokenizer.batch_decode(translated_tokens, skip_special_tokens=True):
|
24 |
translations.append(translation)
|
25 |
|
26 |
-
return "\n".join(["• " + translation for translation in translations])
|
|
|
27 |
|
28 |
output = gr.outputs.Textbox()
|
29 |
# with gr.Accordion("Advanced Options"):
|
|
|
23 |
for translation in tokenizer.batch_decode(translated_tokens, skip_special_tokens=True):
|
24 |
translations.append(translation)
|
25 |
|
26 |
+
# return "\n".join(["• " + translation for translation in translations])
|
27 |
+
return translations
|
28 |
|
29 |
output = gr.outputs.Textbox()
|
30 |
# with gr.Accordion("Advanced Options"):
|