try textbox.input
Browse files
app.py
CHANGED
@@ -62,9 +62,9 @@ def opus_trans(message, result_lang, target_lang):
|
|
62 |
return translated
|
63 |
|
64 |
|
65 |
-
article = gr.Textbox()
|
66 |
lang_select = gr.Dropdown(["en", "zh"])
|
67 |
-
lang_detect = detect_lang(article, lang_select)
|
68 |
translate = gr.Interface(
|
69 |
opus_trans,
|
70 |
[
|
|
|
62 |
return translated
|
63 |
|
64 |
|
65 |
+
article = gr.Textbox()
|
66 |
lang_select = gr.Dropdown(["en", "zh"])
|
67 |
+
lang_detect = detect_lang(article.input, lang_select)
|
68 |
translate = gr.Interface(
|
69 |
opus_trans,
|
70 |
[
|