Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ Rewrite the following passage so it fits about {target_flesch} Flesch Reading Ea
|
|
| 114 |
return resp.choices[0].message.content.strip()
|
| 115 |
|
| 116 |
|
| 117 |
-
def split_pages(text, words=
|
| 118 |
w = text.split()
|
| 119 |
return [" ".join(w[i:i+words]) for i in range(0, len(w), words)] or [text]
|
| 120 |
|
|
|
|
| 114 |
return resp.choices[0].message.content.strip()
|
| 115 |
|
| 116 |
|
| 117 |
+
def split_pages(text, words=300):
|
| 118 |
w = text.split()
|
| 119 |
return [" ".join(w[i:i+words]) for i in range(0, len(w), words)] or [text]
|
| 120 |
|