test logic
Browse files
app.py
CHANGED
@@ -64,8 +64,14 @@ def opus_trans(message, result_lang, target_lang):
|
|
64 |
|
65 |
# textbox = gr.Textbox()
|
66 |
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
)
|
70 |
|
71 |
-
|
|
|
64 |
|
65 |
# textbox = gr.Textbox()
|
66 |
|
67 |
+
translate = gr.Interface(
|
68 |
+
opus_trans,
|
69 |
+
[
|
70 |
+
gr.Textbox(),
|
71 |
+
lang_detect([gr.Textbox(), gr.Dropdown(["en", "zh"])]),
|
72 |
+
gr.Dropdown(["en", "zh"]),
|
73 |
+
],
|
74 |
+
outputs=gr.Textbox(),
|
75 |
)
|
76 |
|
77 |
+
translate.launch()
|