poltextlab commited on
Commit
3772be3
·
verified ·
1 Parent(s): a37d750

update style

Browse files
Files changed (1) hide show
  1. interfaces/cap_minor.py +1 -1
interfaces/cap_minor.py CHANGED
@@ -103,7 +103,7 @@ def predict(text, model_id, tokenizer_id):
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>
 
103
  </div>"""
104
 
105
  html += f"""
106
+ <div style="display: flex; justify-content: space-between; align-items: center; 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>