test
Browse files- src/display/css_html_js.py +2 -2
- src/display/formatting.py +2 -2
src/display/css_html_js.py
CHANGED
@@ -102,10 +102,10 @@ custom_css = """
|
|
102 |
font-size:14px !important
|
103 |
}
|
104 |
|
105 |
-
contaminated{
|
106 |
background-color:red !important;
|
107 |
}
|
108 |
-
clean{
|
109 |
background-color:green !important;
|
110 |
}
|
111 |
|
|
|
102 |
font-size:14px !important
|
103 |
}
|
104 |
|
105 |
+
.contaminated{
|
106 |
background-color:red !important;
|
107 |
}
|
108 |
+
.clean{
|
109 |
background-color:green !important;
|
110 |
}
|
111 |
|
src/display/formatting.py
CHANGED
@@ -8,9 +8,9 @@ def make_clickable_model(model_name):
|
|
8 |
|
9 |
def make_contamination_red(contamination_score):
|
10 |
if contamination_score <=0:
|
11 |
-
return f"<clean
|
12 |
else:
|
13 |
-
return f"<contaminated style='display:block;background-color:red !important;padding:5px;color: white; text-align: center;margin:0px' title='Contaminated model!'>{round((contamination_score),2)}</
|
14 |
|
15 |
def styled_error(error):
|
16 |
return f"<p style='color: red; font-size: 20px; text-align: center;'>{error}</p>"
|
|
|
8 |
|
9 |
def make_contamination_red(contamination_score):
|
10 |
if contamination_score <=0:
|
11 |
+
return f"<p class='clean' style='display:block;background-color:green !important;padding:5px;color: white; text-align: center;margin:0px' title='Clean model!'>{round((contamination_score))}</p>"
|
12 |
else:
|
13 |
+
return f"<p class='contaminated' style='display:block;background-color:red !important;padding:5px;color: white; text-align: center;margin:0px' title='Contaminated model!'>{round((contamination_score),2)}</p>"
|
14 |
|
15 |
def styled_error(error):
|
16 |
return f"<p style='color: red; font-size: 20px; text-align: center;'>{error}</p>"
|