freemt commited on
Commit
1f758c0
·
1 Parent(s): 2c9474d

first commit

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -27,12 +27,12 @@ def opusmt(
27
  inputs = [
28
  gr.Textbox(
29
  label="text to translate",
30
- value="zh",
31
  lines=7,
32
  max_lines=200,
33
  ),
34
  # "textarea",
35
- gr.Textbox(label="to_lang", value="en"),
36
  ]
37
  outputs = [
38
  gr.Textbox(
@@ -55,5 +55,7 @@ iface = gr.Interface(
55
  ["This is a test.", "zh"],
56
  ["This is a test.", "de"],
57
  ],
 
 
58
  )
59
  iface.launch(enable_queue=True)
 
27
  inputs = [
28
  gr.Textbox(
29
  label="text to translate",
30
+ value="",
31
  lines=7,
32
  max_lines=200,
33
  ),
34
  # "textarea",
35
+ gr.Textbox(label="to_lang", value="zh"),
36
  ]
37
  outputs = [
38
  gr.Textbox(
 
55
  ["This is a test.", "zh"],
56
  ["This is a test.", "de"],
57
  ],
58
+ allow_flagging="never",
59
+ cache_examples=False,
60
  )
61
  iface.launch(enable_queue=True)