Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def btTranslator(docxfile):
|
|
60 |
model = AutoModelForSeq2SeqLM.from_pretrained(lang)
|
61 |
model.to(device)
|
62 |
lt = LineTokenizer()
|
63 |
-
batch_size =
|
64 |
paragraphs = lt.tokenize(bigtext)
|
65 |
translated_paragraphs = []
|
66 |
|
|
|
60 |
model = AutoModelForSeq2SeqLM.from_pretrained(lang)
|
61 |
model.to(device)
|
62 |
lt = LineTokenizer()
|
63 |
+
batch_size = 64
|
64 |
paragraphs = lt.tokenize(bigtext)
|
65 |
translated_paragraphs = []
|
66 |
|