mariamSoub commited on
Commit
266efbf
·
verified ·
1 Parent(s): e483703

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -517,21 +517,21 @@ Samples collected: {len(ALL_Y_TRUE)}
517
 
518
  # Format output
519
  output = f"""
520
- BIAS ANALYSIS:
521
- Q1. Biased: {"biased" if parsed["biased"] else "unbiased"}
522
- Q2. Bias Type: {parsed["bias_types"][0] if parsed["bias_types"] else "None"}
523
- Q3. Demographic Group: {parsed["demographic_group"][0] if parsed["demographic_group"] else "None"}
524
 
525
- REGARD ANALYSIS:
526
- {regard_label}
527
- {regard_score}
528
 
529
- MNLI BIAS LEVEL: {mnli_rating}
530
 
531
- {fairness_metrics}
532
 
533
- {mitigation if mitigation else "No bias detected - no mitigation needed."}
534
- """
535
 
536
  return output
537
 
 
517
 
518
  # Format output
519
  output = f"""
520
+ BIAS ANALYSIS:
521
+ Q1. Biased: {"biased" if parsed["biased"] else "unbiased"}
522
+ Q2. Bias Type: {parsed["bias_types"][0] if parsed["bias_types"] else "None"}
523
+ Q3. Demographic Group: {parsed["demographic_group"][0] if parsed["demographic_group"] else "None"}
524
 
525
+ REGARD ANALYSIS:
526
+ {regard_label}
527
+ {regard_score}
528
 
529
+ MNLI BIAS LEVEL: {mnli_rating}
530
 
531
+ {fairness_metrics}
532
 
533
+ {mitigation if mitigation else "No bias detected - no mitigation needed."}
534
+ """
535
 
536
  return output
537