richylyq commited on
Commit
e901925
·
1 Parent(s): 9acb5df

try this but should not work

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ def opus_trans(message, result_lang, target_lang):
62
  return translated
63
 
64
 
65
- article = gr.Textbox.input()
66
  lang_select = gr.Dropdown(["en", "zh"])
67
  lang_detect = detect_lang(article, lang_select)
68
  translate = gr.Interface(
 
62
  return translated
63
 
64
 
65
+ article = gr.Textbox().content
66
  lang_select = gr.Dropdown(["en", "zh"])
67
  lang_detect = detect_lang(article, lang_select)
68
  translate = gr.Interface(