Spaces:
Sleeping
Sleeping
fix first line break
Browse files
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 |
-
|
|
|
|
| 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)
|