elvinan commited on
Commit
feb6fda
·
1 Parent(s): fc9b454

Increase limit

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ def translate(inp, direction):
14
 
15
  res = translater(
16
  text,
17
- max_length=512,
18
  early_stopping=True,
19
  )[0]['translation_text'][3:]
20
  return res
@@ -39,7 +39,7 @@ iface = gr.Interface(
39
  article=article,
40
  examples=examples,
41
  inputs=[
42
- gr.inputs.Textbox(lines=5, placeholder="Enter text (maximum 5 lines)", label="Input"),
43
  gr.inputs.Radio(
44
  choices=[
45
  'en->vi',
 
14
 
15
  res = translater(
16
  text,
17
+ max_length=999999999,
18
  early_stopping=True,
19
  )[0]['translation_text'][3:]
20
  return res
 
39
  article=article,
40
  examples=examples,
41
  inputs=[
42
+ gr.inputs.Textbox(lines=9999, placeholder="Enter text (maximum 9999 lines)", label="Input"),
43
  gr.inputs.Radio(
44
  choices=[
45
  'en->vi',