Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -296,7 +296,7 @@ def bloombergViz(att, val, numblocks, score_templates_df, flip=False):
|
|
296 |
|
297 |
def att_bloombergViz(att, val, numblocks, score_templates_df, flip=False):
|
298 |
viz = bloombergViz(att, val, numblocks, score_templates_df, flip)
|
299 |
-
attHTML = f"<div style='border-style:solid;border-color:#999;border-radius:12px'>{att}: {round(val*100)}%<br>{viz}</div><br>"
|
300 |
return attHTML
|
301 |
|
302 |
def startBiasTest(test_sentences_df, gr1, gr2, att1, att2, model_name, progress=gr.Progress()):
|
|
|
296 |
|
297 |
def att_bloombergViz(att, val, numblocks, score_templates_df, flip=False):
|
298 |
viz = bloombergViz(att, val, numblocks, score_templates_df, flip)
|
299 |
+
attHTML = f"<center><div style='border-style:solid;border-color:#999;border-radius:12px'>{att}: {round(val*100)}%<br>{viz}</div></center><br>"
|
300 |
return attHTML
|
301 |
|
302 |
def startBiasTest(test_sentences_df, gr1, gr2, att1, att2, model_name, progress=gr.Progress()):
|