shainaraza commited on
Commit
86dad28
1 Parent(s): 61aba4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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
- # Debias the text
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