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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -499,7 +499,11 @@ Samples collected: {len(ALL_Y_TRUE)}
499
  rule_check = rule_based_bias_check(user_response)
500
 
501
  if rule_check is not None:
502
- parsed = rule_check
 
 
 
 
503
 
504
  # 🔥 OVERRIDE DISPLAY OUTPUT (THIS IS THE MISSING PIECE)
505
  bias_analysis = f"""Q1. Biased: biased
 
499
  rule_check = rule_based_bias_check(user_response)
500
 
501
  if rule_check is not None:
502
+ parsed = {
503
+ "biased": True, # 🔥 FORCE TRUE
504
+ "bias_types": rule_check["bias_types"],
505
+ "demographic_group": rule_check["demographic_group"]
506
+ }
507
 
508
  # 🔥 OVERRIDE DISPLAY OUTPUT (THIS IS THE MISSING PIECE)
509
  bias_analysis = f"""Q1. Biased: biased