Commit
·
68462d6
1
Parent(s):
13e0668
Initial deployment: Antibody non-specificity predictor
Browse files- ESM-1v (650M) + Logistic Regression
- Trained on Boughter dataset
- Pydantic v2 validation
- Gradio 5.x UI
app.py
CHANGED
|
@@ -196,6 +196,14 @@ theme = gr.themes.Soft(
|
|
| 196 |
# Force white text on ALL blue/primary colored elements
|
| 197 |
button_primary_text_color="#FFFFFF",
|
| 198 |
button_primary_text_color_dark="#FFFFFF",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
slider_color="#3B82F6",
|
| 200 |
slider_color_dark="#3B82F6",
|
| 201 |
block_title_text_color="#374151",
|
|
@@ -213,6 +221,21 @@ theme = gr.themes.Soft(
|
|
| 213 |
table_row_focus_dark="#DBEAFE",
|
| 214 |
)
|
| 215 |
with gr.Blocks(theme=theme, title="Antibody Predictor") as app:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
# Header (inline styles to survive HF Spaces stripping)
|
| 217 |
gr.HTML(
|
| 218 |
"""
|
|
|
|
| 196 |
# Force white text on ALL blue/primary colored elements
|
| 197 |
button_primary_text_color="#FFFFFF",
|
| 198 |
button_primary_text_color_dark="#FFFFFF",
|
| 199 |
+
# CRITICAL: Override input label text color (for Dropdown, Slider, etc labels)
|
| 200 |
+
input_border_color_focus="#3B82F6", # Blue border when focused
|
| 201 |
+
input_border_color_focus_dark="#3B82F6",
|
| 202 |
+
# Align button background with labels (#3B82F6) and define standard hover (#2563EB)
|
| 203 |
+
button_primary_background_fill="#3B82F6",
|
| 204 |
+
button_primary_background_fill_dark="#3B82F6",
|
| 205 |
+
button_primary_background_fill_hover="#2563EB",
|
| 206 |
+
button_primary_background_fill_hover_dark="#2563EB",
|
| 207 |
slider_color="#3B82F6",
|
| 208 |
slider_color_dark="#3B82F6",
|
| 209 |
block_title_text_color="#374151",
|
|
|
|
| 221 |
table_row_focus_dark="#DBEAFE",
|
| 222 |
)
|
| 223 |
with gr.Blocks(theme=theme, title="Antibody Predictor") as app:
|
| 224 |
+
# CRITICAL CSS FIX: Force white text on ALL blue label backgrounds
|
| 225 |
+
gr.HTML(
|
| 226 |
+
"""
|
| 227 |
+
<style>
|
| 228 |
+
/* Force white text on all Gradio labels with blue backgrounds */
|
| 229 |
+
label, .label, [class*="label"] {
|
| 230 |
+
color: white !important;
|
| 231 |
+
}
|
| 232 |
+
/* But keep accordion titles dark */
|
| 233 |
+
.accordion button {
|
| 234 |
+
color: #374151 !important;
|
| 235 |
+
}
|
| 236 |
+
</style>
|
| 237 |
+
"""
|
| 238 |
+
)
|
| 239 |
# Header (inline styles to survive HF Spaces stripping)
|
| 240 |
gr.HTML(
|
| 241 |
"""
|