import spacy import streamlit as st st.title('Strong Word Highlighter') 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.') with st.spinner("The model is loading."): nlp = spacy.load('en_pipeline') input = st.text_area(label = '') text = nlp(input) output_html = spacy.displacy.render(text, style='ent', jupyter=False, options = {"colors": {'bias': 'ff5a36'}}) st.markdown(output_html, unsafe_allow_html=True)