Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ model_list = [
|
|
| 7 |
"facebook/m2m100_418M",
|
| 8 |
"Helsinki-NLP/opus-mt-en-zh",
|
| 9 |
"liam168/trans-opus-mt-en-zh",
|
| 10 |
-
"
|
| 11 |
]
|
| 12 |
|
| 13 |
# init
|
|
@@ -31,6 +31,6 @@ with gr.Blocks() as demo:
|
|
| 31 |
|
| 32 |
translate_btn.click(translate, inputs=englishtxt_model_input, outputs=chinese_output, api_name="translate-to-chinese")
|
| 33 |
examples = gr.Examples(examples=["I went to the supermarket yesterday.", "Helen is a good swimmer."],
|
| 34 |
-
inputs=[
|
| 35 |
|
| 36 |
demo.launch()
|
|
|
|
| 7 |
"facebook/m2m100_418M",
|
| 8 |
"Helsinki-NLP/opus-mt-en-zh",
|
| 9 |
"liam168/trans-opus-mt-en-zh",
|
| 10 |
+
"t5-large"
|
| 11 |
]
|
| 12 |
|
| 13 |
# init
|
|
|
|
| 31 |
|
| 32 |
translate_btn.click(translate, inputs=englishtxt_model_input, outputs=chinese_output, api_name="translate-to-chinese")
|
| 33 |
examples = gr.Examples(examples=["I went to the supermarket yesterday.", "Helen is a good swimmer."],
|
| 34 |
+
inputs=[englishtxt_model_input[0]])
|
| 35 |
|
| 36 |
demo.launch()
|