richylyq commited on
Commit
55f0629
1 Parent(s): aad89b6

test logic

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -64,8 +64,14 @@ def opus_trans(message, result_lang, target_lang):
64
 
65
  # textbox = gr.Textbox()
66
 
67
- langdetect = gr.Interface(
68
- lang_detect, [gr.Textbox(), gr.Dropdown(["en", "zh"])], outputs=gr.Textbox()
 
 
 
 
 
 
69
  )
70
 
71
- langdetect.launch()
 
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()