Update app.py
Browse files
app.py
CHANGED
@@ -394,11 +394,11 @@ if url_text:
|
|
394 |
st.session_state.text_area = cleaned_text[0]
|
395 |
|
396 |
elif plain_text:
|
397 |
-
|
398 |
st.session_state.text_area = cleaned_text[0]
|
399 |
|
400 |
elif upload_doc:
|
401 |
-
|
402 |
st.session_state.text_area = cleaned_text[0]
|
403 |
|
404 |
article_text = st.text_area(
|
|
|
394 |
st.session_state.text_area = cleaned_text[0]
|
395 |
|
396 |
elif plain_text:
|
397 |
+
article_title, cleaned_text = clean_text(plain_text,plain_text=True)
|
398 |
st.session_state.text_area = cleaned_text[0]
|
399 |
|
400 |
elif upload_doc:
|
401 |
+
article_title, cleaned_text = clean_text(upload_doc,doc=True)
|
402 |
st.session_state.text_area = cleaned_text[0]
|
403 |
|
404 |
article_text = st.text_area(
|