Spaces:
Runtime error
Runtime error
import streamlit as st # web | |
import spacy # named entity recognition | |
st.title("Bias Mitigator for Fairness and Equity AI for Corpus and Data") | |
with st.spinner("Please wait while the model is being loaded...."): | |
nlp = spacy.load("en_pipeline") | |
input = st.text_area(label = "Enter your text to get biased words recognized.....") | |
doc = nlp(input) | |
output_html = spacy.displacy.render(doc, style='ent', jupyter=False, options = {"colors": {'bias':'#ff5a36'} }) | |
st.markdown(output_html, unsafe_allow_html=True) |