richylyq commited on
Commit
de63ad2
·
1 Parent(s): 2f09759
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -145,8 +145,8 @@ with gr.Blocks(theme=myTheme) as demo:
145
  trans_btn = gr.Button("Translate")
146
  selected = toolkit_select.select(on_select)
147
  print(selected)
148
- fntouse = f"{selected}_trans".lower()
149
- trans_btn.click(fn=fntouse, inputs=[article, lang_select], outputs=result)
150
  # if selected == "OPUS":
151
  # print(" chosen OPUS")
152
 
 
145
  trans_btn = gr.Button("Translate")
146
  selected = toolkit_select.select(on_select)
147
  print(selected)
148
+ # fntouse = f"{selected.lower()}_trans"
149
+ trans_btn.click(fn=opus_trans, inputs=[article, lang_select], outputs=result)
150
  # if selected == "OPUS":
151
  # print(" chosen OPUS")
152