Spaces:
Runtime error
Runtime error
Commit ·
9054145
1
Parent(s): 462101e
working on text splitting
Browse files
app.py
CHANGED
|
@@ -123,7 +123,7 @@ def main() -> None:
|
|
| 123 |
if summarize_button:
|
| 124 |
if target_text_input is not "":
|
| 125 |
with st.spinner("Summarizing in progress..."):
|
| 126 |
-
sentences = split_sentences_by_token_length(target_text_input, 600)
|
| 127 |
for sentence in sentences:
|
| 128 |
st.markdown(sentence)
|
| 129 |
st.markdown("####")
|
|
|
|
| 123 |
if summarize_button:
|
| 124 |
if target_text_input is not "":
|
| 125 |
with st.spinner("Summarizing in progress..."):
|
| 126 |
+
sentences = split_sentences_by_token_length(nltk.sent_tokenize(target_text_input), 600)
|
| 127 |
for sentence in sentences:
|
| 128 |
st.markdown(sentence)
|
| 129 |
st.markdown("####")
|