VibecoderMcSwaggins commited on
Commit
9d31d05
·
1 Parent(s): ffa3ae4

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 +16 -1
app.py CHANGED
@@ -174,7 +174,22 @@ examples = [
174
  ]
175
 
176
  # --- Gradio Blocks App ---
177
- with gr.Blocks(theme=gr.themes.Soft(), title="Antibody Predictor") as app:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  # Header (inline styles to survive HF Spaces stripping)
179
  gr.HTML(
180
  """
 
174
  ]
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
+ input_text_color="#111827",
190
+ )
191
+
192
+ with gr.Blocks(theme=theme, title="Antibody Predictor") as app:
193
  # Header (inline styles to survive HF Spaces stripping)
194
  gr.HTML(
195
  """