nickmuchi commited on
Commit
9dbc162
1 Parent(s): 345e04f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -431,20 +431,18 @@ st.markdown("---")
431
 
432
  url_text = st.text_input("Please Enter a url here")
433
 
 
 
 
 
434
  article_text = st.text_area(
435
  label='Full Article Text',
436
- value= '',
437
  placeholder="Full article text will be displayed here..",
438
  height=250,
439
  key='text_area'
440
  )
441
 
442
- if url_text:
443
- article_title, cleaned_text = clean_text(url_text, url=True)
444
- st.session_state.text_area = cleaned_text
445
-
446
-
447
-
448
  st.markdown(
449
  "<h3 style='text-align: center; color: red;'>OR</h3>",
450
  unsafe_allow_html=True,
 
431
 
432
  url_text = st.text_input("Please Enter a url here")
433
 
434
+ if url_text:
435
+ article_title, cleaned_text = clean_text(url_text, url=True)
436
+ st.session_state.text_area = cleaned_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'
444
  )
445
 
 
 
 
 
 
 
446
  st.markdown(
447
  "<h3 style='text-align: center; color: red;'>OR</h3>",
448
  unsafe_allow_html=True,