Update app.py
Browse files
app.py
CHANGED
|
@@ -429,6 +429,9 @@ st.markdown(
|
|
| 429 |
|
| 430 |
st.markdown("---")
|
| 431 |
|
|
|
|
|
|
|
|
|
|
| 432 |
url_text = st.text_input("Please Enter a url here")
|
| 433 |
|
| 434 |
if url_text:
|
|
@@ -437,7 +440,6 @@ if url_text:
|
|
| 437 |
|
| 438 |
article_text = st.text_area(
|
| 439 |
label='Full Article Text',
|
| 440 |
-
value= st.session_state.text_area,
|
| 441 |
placeholder="Full article text will be displayed here..",
|
| 442 |
height=250,
|
| 443 |
key='text_area'
|
|
|
|
| 429 |
|
| 430 |
st.markdown("---")
|
| 431 |
|
| 432 |
+
if "text_area" not in st.session_state:
|
| 433 |
+
c = st.empty()
|
| 434 |
+
|
| 435 |
url_text = st.text_input("Please Enter a url here")
|
| 436 |
|
| 437 |
if url_text:
|
|
|
|
| 440 |
|
| 441 |
article_text = st.text_area(
|
| 442 |
label='Full Article Text',
|
|
|
|
| 443 |
placeholder="Full article text will be displayed here..",
|
| 444 |
height=250,
|
| 445 |
key='text_area'
|