Spaces:
Runtime error
Runtime error
File size: 512 Bytes
6af3f8d |
1 2 3 4 5 6 7 8 9 |
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) |