richylyq commited on
Commit
5327323
1 Parent(s): fd7b5e2
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -116,6 +116,6 @@ with gr.Blocks(theme=myTheme) as demo:
116
  lang_select = gr.Radio(["English", "Chinese"], label="Select Desired Language")
117
  result = gr.Textbox(label="Translated Result")
118
  trans_btn = gr.Button("Translate")
119
- trans_btn.click(fn=opus_trans, inputs=article, outputs=result)
120
 
121
  demo.launch()
 
116
  lang_select = gr.Radio(["English", "Chinese"], label="Select Desired Language")
117
  result = gr.Textbox(label="Translated Result")
118
  trans_btn = gr.Button("Translate")
119
+ trans_btn.click(fn=opus_trans, inputs=[article, lang_select], outputs=result)
120
 
121
  demo.launch()