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

Adjust title label

Browse files
Files changed (1) hide show
  1. interfaces/cap_minor.py +2 -3
interfaces/cap_minor.py CHANGED
@@ -98,10 +98,9 @@ def predict(text, model_id, tokenizer_id):
98
 
99
  if first:
100
  html += f"""
101
- <div style="display: flex; bold; font-size: 30px; justify-content: space-between; align-items: center; margin-bottom: 4px;">
102
  <span style="color: {text_color};">{label}</span>
103
- </div>
104
- """
105
 
106
  html += f"""
107
  <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;">
 
98
 
99
  if first:
100
  html += f"""
101
+ <div style="text-align: center; font-weight: bold; font-size: 30px; margin-bottom: 10px;">
102
  <span style="color: {text_color};">{label}</span>
103
+ </div>"""
 
104
 
105
  html += f"""
106
  <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;">