Spaces:
Running
Running
center content
Browse files- interfaces/cap_minor.py +2 -3
interfaces/cap_minor.py
CHANGED
@@ -103,9 +103,8 @@ def predict(text, model_id, tokenizer_id):
|
|
103 |
</div>"""
|
104 |
|
105 |
html += f"""
|
106 |
-
<div style="
|
107 |
-
<span style="color: {text_color};">{label}
|
108 |
-
<span style="color: {text_color};">{int(prob * 100)}%</span>
|
109 |
</div>
|
110 |
<div style="height: 4px; background-color: {bar_color}; width: {bar_width}%; margin-bottom: 8px;"></div>
|
111 |
"""
|
|
|
103 |
</div>"""
|
104 |
|
105 |
html += f"""
|
106 |
+
<div style="text-align: center; font-weight: bold; font-size: 18px; margin-bottom: 4px;">
|
107 |
+
<span style="color: {text_color};">{label} — {int(prob * 100)}%</span>
|
|
|
108 |
</div>
|
109 |
<div style="height: 4px; background-color: {bar_color}; width: {bar_width}%; margin-bottom: 8px;"></div>
|
110 |
"""
|