feaae commited on
Commit
09c5cea
·
1 Parent(s): 7e9e1e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- "orgcatorg/nllb-200-distilled-600M-tl"
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=[english])
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()