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

test change for trans btn

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -145,7 +145,7 @@ 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"
149
  trans_btn.click(fn=fntouse, inputs=[article, lang_select], outputs=result)
150
  # if selected == "OPUS":
151
  # print(" chosen OPUS")
 
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")