Update app.py
Browse files
app.py
CHANGED
@@ -430,13 +430,13 @@ st.markdown(
|
|
430 |
st.markdown("---")
|
431 |
|
432 |
if "text_area" not in st.session_state:
|
433 |
-
|
434 |
|
435 |
url_text = st.text_input("Please Enter a url here")
|
436 |
|
437 |
if url_text:
|
438 |
article_title, cleaned_text = clean_text(url_text, url=True)
|
439 |
-
st.session_state.text_area = cleaned_text
|
440 |
|
441 |
article_text = st.text_area(
|
442 |
label='Full Article Text',
|
|
|
430 |
st.markdown("---")
|
431 |
|
432 |
if "text_area" not in st.session_state:
|
433 |
+
st.session_state.text_area = st.empty()
|
434 |
|
435 |
url_text = st.text_input("Please Enter a url here")
|
436 |
|
437 |
if url_text:
|
438 |
article_title, cleaned_text = clean_text(url_text, url=True)
|
439 |
+
st.session_state.text_area = cleaned_text[0]
|
440 |
|
441 |
article_text = st.text_area(
|
442 |
label='Full Article Text',
|