Spaces:
Running
Running
update colours
Browse files- interfaces/cap_minor.py +2 -2
interfaces/cap_minor.py
CHANGED
@@ -109,8 +109,8 @@ def predict(text, model_id, tokenizer_id):
|
|
109 |
<div style="height: 4px; background-color: green; width: {bar_width}%; margin-bottom: 8px;"></div>
|
110 |
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;">
|
111 |
<span style="color: {text_color}; transition: background-color 0.3s, color 0.3s; padding: 2px;"
|
112 |
-
onmouseover=
|
113 |
-
onmouseout="this.style.
|
114 |
">{label} — {int(prob * 100)}%</span>
|
115 |
</div>
|
116 |
"""
|
|
|
109 |
<div style="height: 4px; background-color: green; width: {bar_width}%; margin-bottom: 8px;"></div>
|
110 |
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;">
|
111 |
<span style="color: {text_color}; transition: background-color 0.3s, color 0.3s; padding: 2px;"
|
112 |
+
onmouseover= this.style.color='orange'"
|
113 |
+
onmouseout="this.style.color='{text_color}'"
|
114 |
">{label} — {int(prob * 100)}%</span>
|
115 |
</div>
|
116 |
"""
|