Spaces:
Sleeping
Sleeping
Create helpers.py
Browse files- utils/helpers.py +7 -0
utils/helpers.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import textwrap
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
class Helpers:
|
| 5 |
+
@staticmethod
|
| 6 |
+
def chunk_text(text, chunk_size=500):
|
| 7 |
+
return textwrap.wrap(text, chunk_size)
|