olemeyer commited on
Commit
1ed96a9
·
1 Parent(s): 36920fc

fix first line break

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -101,7 +101,8 @@ def generate_text(complex_text:str,style:str,temperature,top_k,top_p):
101
  for translation in gen_sentence(style,sentence,last_sentences=last_sentences,last_translations=last_translations,temperature=temperature,top_k=top_k,top_p=top_p):
102
  translation=translation.strip()
103
 
104
- yield "\n".join(last_translations).strip() + "\n" + translation.strip()
 
105
 
106
  last_sentences.append(sentence)
107
  last_translations.append(translation)
 
101
  for translation in gen_sentence(style,sentence,last_sentences=last_sentences,last_translations=last_translations,temperature=temperature,top_k=top_k,top_p=top_p):
102
  translation=translation.strip()
103
 
104
+ text="\n".join(last_translations) + "\n" + translation
105
+ yield text.strip()
106
 
107
  last_sentences.append(sentence)
108
  last_translations.append(translation)