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

switch bar and content

Browse files
Files changed (1) hide show
  1. interfaces/cap_minor.py +1 -1
interfaces/cap_minor.py CHANGED
@@ -103,10 +103,10 @@ 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} — {int(prob * 100)}%</span>
108
  </div>
109
- <div style="height: 4px; background-color: {bar_color}; width: {bar_width}%; margin-bottom: 8px;"></div>
110
  """
111
  first = False
112
 
 
103
  </div>"""
104
 
105
  html += f"""
106
+ <div style="height: 4px; background-color: green; width: {bar_width}%; margin-bottom: 8px;"></div>
107
  <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;">
108
  <span style="color: {text_color};">{label} — {int(prob * 100)}%</span>
109
  </div>
 
110
  """
111
  first = False
112