Spaces:
Running
Running
reduce
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
|
34 |
|
35 |
|
36 |
|
37 |
-
def split_into_token_chunks(text: str, max_tokens: int =
|
38 |
"""
|
39 |
Splits a long string into chunks of a specified maximum number of tokens (words).
|
40 |
|
|
|
34 |
|
35 |
|
36 |
|
37 |
+
def split_into_token_chunks(text: str, max_tokens: int = 300) -> list:
|
38 |
"""
|
39 |
Splits a long string into chunks of a specified maximum number of tokens (words).
|
40 |
|