error msg
Browse files
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
|
| 149 |
-
trans_btn.click(fn=
|
| 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 |
|