davanstrien HF staff commited on
Commit
126fd42
1 Parent(s): e906778

Fix newline formatting in translate function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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