test change for trans btn
Browse files
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")
|