Spaces:
Runtime error
Runtime error
sberbank-ai
commited on
Commit
·
d79b562
1
Parent(s):
04c0f3a
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,8 +38,8 @@ def split_text_to_rows(text, n):
|
|
| 38 |
|
| 39 |
def split_text_to_rows_by_chars(text, n):
|
| 40 |
list_of_rows = []
|
| 41 |
-
for i in range(0, len(
|
| 42 |
-
list_of_rows.append(
|
| 43 |
return list_of_rows
|
| 44 |
|
| 45 |
|
|
|
|
| 38 |
|
| 39 |
def split_text_to_rows_by_chars(text, n):
|
| 40 |
list_of_rows = []
|
| 41 |
+
for i in range(0, len(text), n):
|
| 42 |
+
list_of_rows.append(text[i:n+i].strip())
|
| 43 |
return list_of_rows
|
| 44 |
|
| 45 |
|