Spaces:
Runtime error
Runtime error
Increase limit
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def translate(inp, direction):
|
|
14 |
|
15 |
res = translater(
|
16 |
text,
|
17 |
-
max_length=
|
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=
|
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',
|