Spaces:
Runtime error
Runtime error
Commit
·
d834656
1
Parent(s):
01d8fd9
working on text splitting
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def main() -> None:
|
|
96 |
summary_sentences = []
|
97 |
with st.spinner("Summarizing in progress..."):
|
98 |
sentences = split_sentences_by_token_length(nltk.sent_tokenize(target_text_input, language="english"),
|
99 |
-
split_token_length=
|
100 |
)
|
101 |
for sentence in sentences:
|
102 |
output = pipe(sentence)
|
|
|
96 |
summary_sentences = []
|
97 |
with st.spinner("Summarizing in progress..."):
|
98 |
sentences = split_sentences_by_token_length(nltk.sent_tokenize(target_text_input, language="english"),
|
99 |
+
split_token_length=800
|
100 |
)
|
101 |
for sentence in sentences:
|
102 |
output = pipe(sentence)
|