Spaces:
Running
Running
shainaraza
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -92,10 +92,7 @@ if st.button("Analyze and Debias Text"):
|
|
92 |
st.write(f"**Classification:** {label} (Confidence: {score:.2f})")
|
93 |
biased_words = [result['word'] for result in ner_results if result['entity'].startswith('B-BIAS')]
|
94 |
st.write("**Biased Words Identified:**", ", ".join(biased_words))
|
95 |
-
|
96 |
-
debiased_text = get_debiased_sequence(cleaned_text)
|
97 |
-
st.write("## Debiased Text:")
|
98 |
-
st.write(debiased_text)
|
99 |
else:
|
100 |
st.write("Please enter some text to analyze and debias or select a pre-loaded sentence.")
|
101 |
|
|
|
92 |
st.write(f"**Classification:** {label} (Confidence: {score:.2f})")
|
93 |
biased_words = [result['word'] for result in ner_results if result['entity'].startswith('B-BIAS')]
|
94 |
st.write("**Biased Words Identified:**", ", ".join(biased_words))
|
95 |
+
|
|
|
|
|
|
|
96 |
else:
|
97 |
st.write("Please enter some text to analyze and debias or select a pre-loaded sentence.")
|
98 |
|