rjiang12 commited on
Commit
5a53be5
·
1 Parent(s): 3e44661

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -281,10 +281,10 @@ def bloombergViz(att, val, numblocks, score_templates_df, flip=False):
281
  # numUnFilled = numblocks - numFilled
282
 
283
  res = ""
284
- for sentence in score_templates_df[score_templates_df[att] == att, score_templates_df['Stereotyped'] == 'yes', 'Template']:
285
- res += f"<div style='height:20px;width:20px;background-color:#555;display:inline-block'><span class='tooltiptext' style='color:#FFF'>{sentence}</span></div> "
286
- for sentence in score_templates_df[score_templates_df[att] == att, score_templates_df['Stereotyped'] == 'no', 'Template']:
287
- res += f"<div style='height:20px;width:20px;background-color:#999;display:inline-block'><span class='tooltiptext' style='color:#FFF'>{sentence}</span></div> "
288
  return res
289
  # if flip:
290
  # return numFilled * unfilled + numUnFilled * filled;
 
281
  # numUnFilled = numblocks - numFilled
282
 
283
  res = ""
284
+ for sentence in score_templates_df[score_templates_df['Attribute'] == att, score_templates_df['Stereotyped'] == 'yes', 'Template']:
285
+ res += f"<div style='height:20px;width:20px;background-color:#555;display:inline-block' id='filled'><span class='tooltiptext' style='color:#FFF'>{sentence}</span></div> "
286
+ for sentence in score_templates_df[score_templates_df['Attribute'] == att, score_templates_df['Stereotyped'] == 'no', 'Template']:
287
+ res += f"<div style='height:20px;width:20px;background-color:#999;display:inline-block' id='empty'><span class='tooltiptext' style='color:#FFF'>{sentence}</span></div> "
288
  return res
289
  # if flip:
290
  # return numFilled * unfilled + numUnFilled * filled;