Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
~ app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def translate(text):
|
|
20 |
for translation in tokenizer.batch_decode(translated_tokens, skip_special_tokens=True):
|
21 |
translations.append(translation)
|
22 |
|
23 |
-
return
|
24 |
|
25 |
output = gr.outputs.Textbox()
|
26 |
iface = gr.Interface(fn=translate, inputs="text", outputs=output)
|
|
|
20 |
for translation in tokenizer.batch_decode(translated_tokens, skip_special_tokens=True):
|
21 |
translations.append(translation)
|
22 |
|
23 |
+
return "\n".join(["• " + translation for translation in translations])
|
24 |
|
25 |
output = gr.outputs.Textbox()
|
26 |
iface = gr.Interface(fn=translate, inputs="text", outputs=output)
|