Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
126fd42
1
Parent(s):
e906778
Fix newline formatting in translate function
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def translate(text: str, src_lang: str, tgt_lang: str):
|
|
49 |
for sentence in sentence_chunks:
|
50 |
outputs += f"{_translate(sentence, src_lang, tgt_lang)}. "
|
51 |
else:
|
52 |
-
outputs += _translate(chunk, src_lang, tgt_lang) + "\n"
|
53 |
|
54 |
return outputs
|
55 |
|
|
|
49 |
for sentence in sentence_chunks:
|
50 |
outputs += f"{_translate(sentence, src_lang, tgt_lang)}. "
|
51 |
else:
|
52 |
+
outputs += _translate(chunk, src_lang, tgt_lang) + "\n\n"
|
53 |
|
54 |
return outputs
|
55 |
|