richylyq commited on
Commit
b5181f4
1 Parent(s): a7e8544

try textbox[text]

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def opus_trans(message, result_lang, target_lang):
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
  [
 
64
 
65
  article = gr.Textbox()
66
  lang_select = gr.Dropdown(["en", "zh"])
67
+ lang_detect = detect_lang(article["text"], lang_select)
68
  translate = gr.Interface(
69
  opus_trans,
70
  [