Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def translate(text, num_beams=4, num_return_sequences=4):
|
|
23 |
translations.append(translation)
|
24 |
|
25 |
# return "\n".join(["• " + translation for translation in translations])
|
26 |
-
return {input:text, translations:translations}
|
27 |
|
28 |
output = gr.Textbox()
|
29 |
# with gr.Accordion("Advanced Options"):
|
|
|
23 |
translations.append(translation)
|
24 |
|
25 |
# return "\n".join(["• " + translation for translation in translations])
|
26 |
+
return {"input":text, "translations":translations}
|
27 |
|
28 |
output = gr.Textbox()
|
29 |
# with gr.Accordion("Advanced Options"):
|