VibecoderMcSwaggins commited on
Commit
53d6b90
·
1 Parent(s): 68462d6

Initial deployment: Antibody non-specificity predictor

Browse files

- ESM-1v (650M) + Logistic Regression
- Trained on Boughter dataset
- Pydantic v2 validation
- Gradio 5.x UI

Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -196,9 +196,6 @@ 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
- # 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",
@@ -221,21 +218,6 @@ theme = gr.themes.Soft(
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
  """
 
196
  # Force white text on ALL blue/primary colored elements
197
  button_primary_text_color="#FFFFFF",
198
  button_primary_text_color_dark="#FFFFFF",
 
 
 
199
  # Align button background with labels (#3B82F6) and define standard hover (#2563EB)
200
  button_primary_background_fill="#3B82F6",
201
  button_primary_background_fill_dark="#3B82F6",
 
218
  table_row_focus_dark="#DBEAFE",
219
  )
220
  with gr.Blocks(theme=theme, title="Antibody Predictor") as app:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  # Header (inline styles to survive HF Spaces stripping)
222
  gr.HTML(
223
  """