Commit
·
b8a7e42
1
Parent(s):
b9de54e
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
|
@@ -175,17 +175,25 @@ examples = [
|
|
| 175 |
|
| 176 |
# --- Gradio Blocks App ---
|
| 177 |
# Force Light Theme to prevent "Dark Mode" components on White Background
|
|
|
|
| 178 |
theme = gr.themes.Soft(
|
| 179 |
primary_hue="blue",
|
| 180 |
secondary_hue="slate",
|
| 181 |
).set(
|
| 182 |
body_background_fill="#FFFFFF",
|
|
|
|
| 183 |
body_text_color="#111827",
|
|
|
|
| 184 |
background_fill_primary="#FFFFFF",
|
|
|
|
| 185 |
block_background_fill="#F9FAFB",
|
|
|
|
| 186 |
block_label_text_color="#374151",
|
|
|
|
| 187 |
block_title_text_color="#374151",
|
|
|
|
| 188 |
input_background_fill="#FFFFFF",
|
|
|
|
| 189 |
)
|
| 190 |
with gr.Blocks(theme=theme, title="Antibody Predictor") as app:
|
| 191 |
# Header (inline styles to survive HF Spaces stripping)
|
|
|
|
| 175 |
|
| 176 |
# --- Gradio Blocks App ---
|
| 177 |
# Force Light Theme to prevent "Dark Mode" components on White Background
|
| 178 |
+
# We explicitly set *_dark variables to match light variables to disable dark mode
|
| 179 |
theme = gr.themes.Soft(
|
| 180 |
primary_hue="blue",
|
| 181 |
secondary_hue="slate",
|
| 182 |
).set(
|
| 183 |
body_background_fill="#FFFFFF",
|
| 184 |
+
body_background_fill_dark="#FFFFFF",
|
| 185 |
body_text_color="#111827",
|
| 186 |
+
body_text_color_dark="#111827",
|
| 187 |
background_fill_primary="#FFFFFF",
|
| 188 |
+
background_fill_primary_dark="#FFFFFF",
|
| 189 |
block_background_fill="#F9FAFB",
|
| 190 |
+
block_background_fill_dark="#F9FAFB",
|
| 191 |
block_label_text_color="#374151",
|
| 192 |
+
block_label_text_color_dark="#374151",
|
| 193 |
block_title_text_color="#374151",
|
| 194 |
+
block_title_text_color_dark="#374151",
|
| 195 |
input_background_fill="#FFFFFF",
|
| 196 |
+
input_background_fill_dark="#FFFFFF",
|
| 197 |
)
|
| 198 |
with gr.Blocks(theme=theme, title="Antibody Predictor") as app:
|
| 199 |
# Header (inline styles to survive HF Spaces stripping)
|