Spaces:
Sleeping
Sleeping
Commit ·
7e2de3e
1
Parent(s): 94c2ddb
ajuste texto
Browse files
app.py
CHANGED
|
@@ -39,12 +39,13 @@ def chatbot_fix_text(texto):
|
|
| 39 |
while x < quantidade_pontos:
|
| 40 |
index_texto = texto.index('.') + 1
|
| 41 |
texto_esquerda = texto[0:index_texto]
|
| 42 |
-
texto_direita = texto[index_texto + 1:len(texto)]
|
| 43 |
-
texto_novo += texto_esquerda + "\n"
|
| 44 |
texto = texto_direita
|
| 45 |
x += 1
|
| 46 |
if x == quantidade_pontos:
|
| 47 |
-
texto_novo +=
|
|
|
|
|
|
|
| 48 |
|
| 49 |
return texto_novo
|
| 50 |
|
|
|
|
| 39 |
while x < quantidade_pontos:
|
| 40 |
index_texto = texto.index('.') + 1
|
| 41 |
texto_esquerda = texto[0:index_texto]
|
| 42 |
+
texto_direita = texto[index_texto + 1:len(texto)]
|
|
|
|
| 43 |
texto = texto_direita
|
| 44 |
x += 1
|
| 45 |
if x == quantidade_pontos:
|
| 46 |
+
texto_novo += texto_esquerda
|
| 47 |
+
else:
|
| 48 |
+
texto_novo += texto_esquerda + "\n"
|
| 49 |
|
| 50 |
return texto_novo
|
| 51 |
|