Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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'}})
|