poltextlab commited on
Commit
a37d750
·
verified ·
1 Parent(s): 9ec907c

center content

Browse files
Files changed (1) hide show
  1. 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="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;">
107
- <span style="color: {text_color};">{label}</span>
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
  """