Wootang01 commited on
Commit
58843af
·
1 Parent(s): 2b7e472

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,12 +2,12 @@ import spacy
2
  import streamlit as st
3
 
4
  st.title('Strong Word Highlighter')
5
- st.write('Strong words evoke emotions, may offend and may indicate bias. Write or paste text and the machine will attempt to identify strong words.')
6
 
7
  with st.spinner("The model is loading."):
8
  nlp = spacy.load('en_pipeline')
9
 
10
- input = st.text_area(label = '')
11
  text = nlp(input)
12
 
13
  output_html = spacy.displacy.render(text, style='ent', jupyter=False, options = {"colors": {'bias': 'ff5a36'}})
 
2
  import streamlit as st
3
 
4
  st.title('Strong Word Highlighter')
5
+ st.write('Strong words evoke emotions, may offend and may indicate bias.')
6
 
7
  with st.spinner("The model is loading."):
8
  nlp = spacy.load('en_pipeline')
9
 
10
+ input = st.text_area(label = 'Write or paste text below. Enter and the machine will attempt to identify strong words.')
11
  text = nlp(input)
12
 
13
  output_html = spacy.displacy.render(text, style='ent', jupyter=False, options = {"colors": {'bias': 'ff5a36'}})