Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def chunk_clean_text(text):
|
|
85 |
|
86 |
"""Chunk text longer than 500 tokens"""
|
87 |
|
88 |
-
article = nlp(
|
89 |
sentences = [i.text for i in list(article.sents)]
|
90 |
|
91 |
current_chunk = 0
|
@@ -407,7 +407,7 @@ elif plain_text:
|
|
407 |
|
408 |
elif upload_doc:
|
409 |
article_title, cleaned_text = clean_text(upload_doc,doc=True)
|
410 |
-
st.session_state.text_area = cleaned_text
|
411 |
|
412 |
article_text = st.text_area(
|
413 |
label='Full Article Text',
|
|
|
85 |
|
86 |
"""Chunk text longer than 500 tokens"""
|
87 |
|
88 |
+
article = nlp(text)
|
89 |
sentences = [i.text for i in list(article.sents)]
|
90 |
|
91 |
current_chunk = 0
|
|
|
407 |
|
408 |
elif upload_doc:
|
409 |
article_title, cleaned_text = clean_text(upload_doc,doc=True)
|
410 |
+
st.session_state.text_area = cleaned_text
|
411 |
|
412 |
article_text = st.text_area(
|
413 |
label='Full Article Text',
|