richylyq commited on
Commit
390387c
·
1 Parent(s): c55f0aa

test change for trans btn

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -145,9 +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
- trans_btn.click(
149
- fn=f"{selected}_trans", inputs=[article, lang_select], outputs=result
150
- )
151
  # if selected == "OPUS":
152
  # print(" chosen OPUS")
153
 
 
145
  trans_btn = gr.Button("Translate")
146
  selected = toolkit_select.select(on_select)
147
  print(selected)
148
+ fntouse = f"{selected}_trans"
149
+ trans_btn.click(fn=fntouse, inputs=[article, lang_select], outputs=result)
 
150
  # if selected == "OPUS":
151
  # print(" chosen OPUS")
152