Spaces:
Running
Running
Commit ·
2e20513
1
Parent(s): ec2a961
full category names
Browse files- src/streamlit_app.py +23 -23
src/streamlit_app.py
CHANGED
|
@@ -297,24 +297,24 @@ def render_section_guide(sections, compact_columns=None):
|
|
| 297 |
f"<span class='section-guide__range'>{start} - {end}</span>"
|
| 298 |
"</div>"
|
| 299 |
)
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
|
| 319 |
|
| 320 |
# span -> bin coverage
|
|
@@ -1204,19 +1204,19 @@ def render_heatmap_tab(df_ann, df_text, title, key, is_hearing):
|
|
| 1204 |
"<div class='speaker-legend'>"
|
| 1205 |
"<div class='speaker-legend__item'>"
|
| 1206 |
"<span class='speaker-legend__swatch' "
|
| 1207 |
-
"style='background:rgba(76, 175, 80, 0.
|
| 1208 |
"<div class='speaker-legend__item'>"
|
| 1209 |
"<span class='speaker-legend__swatch' "
|
| 1210 |
-
"style='background:rgba(244, 67, 54, 0.
|
| 1211 |
"<div class='speaker-legend__item'>"
|
| 1212 |
"<span class='speaker-legend__swatch' "
|
| 1213 |
-
"style='background:rgba(33, 150, 243, 0.
|
| 1214 |
"<div class='speaker-legend__item'>"
|
| 1215 |
"<span class='speaker-legend__swatch' "
|
| 1216 |
-
"style='background:rgba(158, 158, 158, 0.
|
| 1217 |
"<div class='speaker-legend__item'>"
|
| 1218 |
"<span class='speaker-legend__swatch' "
|
| 1219 |
-
"style='background:rgba(255, 193, 7, 0.
|
| 1220 |
"</div>",
|
| 1221 |
unsafe_allow_html=True,
|
| 1222 |
)
|
|
|
|
| 297 |
f"<span class='section-guide__range'>{start} - {end}</span>"
|
| 298 |
"</div>"
|
| 299 |
)
|
| 300 |
+
# st.markdown(
|
| 301 |
+
# "<style>"
|
| 302 |
+
# ".section-guide{border:1px solid #e6e6e6;border-radius:6px;"
|
| 303 |
+
# "padding:8px 10px;margin:6px 0 12px;}"
|
| 304 |
+
# ".section-guide__row{display:flex;justify-content:space-between;"
|
| 305 |
+
# "gap:12px;align-items:baseline;padding:4px 0;"
|
| 306 |
+
# "border-bottom:1px dashed #eee;}"
|
| 307 |
+
# ".section-guide__row:last-child{border-bottom:none;}"
|
| 308 |
+
# ".section-guide__name{font-weight:600;font-size:13px;color:#222;"
|
| 309 |
+
# "flex:1 1 auto;}"
|
| 310 |
+
# ".section-guide__range{font-family:monospace;font-size:12px;"
|
| 311 |
+
# "color:#333;white-space:nowrap;}"
|
| 312 |
+
# "</style>"
|
| 313 |
+
# "<div class='section-guide'>"
|
| 314 |
+
# + "".join(rows)
|
| 315 |
+
# + "</div>",
|
| 316 |
+
# unsafe_allow_html=True,
|
| 317 |
+
# )
|
| 318 |
|
| 319 |
|
| 320 |
# span -> bin coverage
|
|
|
|
| 1204 |
"<div class='speaker-legend'>"
|
| 1205 |
"<div class='speaker-legend__item'>"
|
| 1206 |
"<span class='speaker-legend__swatch' "
|
| 1207 |
+
"style='background:rgba(76, 175, 80, 0.3)'></span>Applicant</div>"
|
| 1208 |
"<div class='speaker-legend__item'>"
|
| 1209 |
"<span class='speaker-legend__swatch' "
|
| 1210 |
+
"style='background:rgba(244, 67, 54, 0.3)'></span>Government</div>"
|
| 1211 |
"<div class='speaker-legend__item'>"
|
| 1212 |
"<span class='speaker-legend__swatch' "
|
| 1213 |
+
"style='background:rgba(33, 150, 243, 0.3)'></span>Third Party</div>"
|
| 1214 |
"<div class='speaker-legend__item'>"
|
| 1215 |
"<span class='speaker-legend__swatch' "
|
| 1216 |
+
"style='background:rgba(158, 158, 158, 0.3)'></span>UNK</div>"
|
| 1217 |
"<div class='speaker-legend__item'>"
|
| 1218 |
"<span class='speaker-legend__swatch' "
|
| 1219 |
+
"style='background:rgba(255, 193, 7, 0.3)'></span>Judge</div>"
|
| 1220 |
"</div>",
|
| 1221 |
unsafe_allow_html=True,
|
| 1222 |
)
|