Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -299,7 +299,7 @@ def bloombergViz(att, val, numblocks, score_templates_df, onRight=False, flip=Fa
|
|
299 |
res += f"<div style='height:20px;width:20px;background-color:{leftColor};display:inline-block;position:relative' id='filled'><span class='{spanClass}' style='color:#FFF'>{disp}</span></div> "
|
300 |
for i in range(len(dfn.index)):
|
301 |
sentence = dfn.iloc[i,3]
|
302 |
-
disp = sentence.replace("[MASK]", "[SOCIAL GROUP TERM", 1)
|
303 |
res += f"<div style='height:20px;width:20px;background-color:{rightColor};display:inline-block;position:relative' id='empty'><span class='{spanClass}' style='color:#FFF'>{disp}</span></div> "
|
304 |
return res
|
305 |
# if flip:
|
|
|
299 |
res += f"<div style='height:20px;width:20px;background-color:{leftColor};display:inline-block;position:relative' id='filled'><span class='{spanClass}' style='color:#FFF'>{disp}</span></div> "
|
300 |
for i in range(len(dfn.index)):
|
301 |
sentence = dfn.iloc[i,3]
|
302 |
+
disp = sentence.replace("[MASK]", "[SOCIAL GROUP TERM]", 1)
|
303 |
res += f"<div style='height:20px;width:20px;background-color:{rightColor};display:inline-block;position:relative' id='empty'><span class='{spanClass}' style='color:#FFF'>{disp}</span></div> "
|
304 |
return res
|
305 |
# if flip:
|