Commit
·
4bf8559
1
Parent(s):
461a5c6
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
|
@@ -276,7 +276,7 @@ with gr.Blocks(theme=theme, title="Antibody Predictor") as app:
|
|
| 276 |
|
| 277 |
# Examples
|
| 278 |
gr.HTML(
|
| 279 |
-
'<div style="background-color: #
|
| 280 |
)
|
| 281 |
gr.Examples(
|
| 282 |
examples=examples,
|
|
@@ -299,14 +299,14 @@ with gr.Blocks(theme=theme, title="Antibody Predictor") as app:
|
|
| 299 |
|
| 300 |
# Confidence Bar
|
| 301 |
gr.HTML(
|
| 302 |
-
'<div style="background-color: #3B82F6; color: white; padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: 0.875rem; display:
|
| 303 |
)
|
| 304 |
confidence_output = gr.Label(num_top_classes=2, show_label=False)
|
| 305 |
|
| 306 |
# Detailed JSON
|
| 307 |
with gr.Accordion("📋 Detailed JSON Output", open=False):
|
| 308 |
gr.HTML(
|
| 309 |
-
'<div style="background-color: #3B82F6; color: white; padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: 0.875rem; display:
|
| 310 |
)
|
| 311 |
json_output = gr.JSON(show_label=False)
|
| 312 |
|
|
|
|
| 276 |
|
| 277 |
# Examples
|
| 278 |
gr.HTML(
|
| 279 |
+
'<div style="background-color: #1E40AF; color: white; padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: 0.875rem; display: block; margin-bottom: 4px;">Load Example Data</div>'
|
| 280 |
)
|
| 281 |
gr.Examples(
|
| 282 |
examples=examples,
|
|
|
|
| 299 |
|
| 300 |
# Confidence Bar
|
| 301 |
gr.HTML(
|
| 302 |
+
'<div style="background-color: #3B82F6; color: white; padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: 0.875rem; display: block; margin-bottom: 4px;">Model Confidence</div>'
|
| 303 |
)
|
| 304 |
confidence_output = gr.Label(num_top_classes=2, show_label=False)
|
| 305 |
|
| 306 |
# Detailed JSON
|
| 307 |
with gr.Accordion("📋 Detailed JSON Output", open=False):
|
| 308 |
gr.HTML(
|
| 309 |
+
'<div style="background-color: #3B82F6; color: white; padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: 0.875rem; display: block; margin-bottom: 4px;">Raw Result</div>'
|
| 310 |
)
|
| 311 |
json_output = gr.JSON(show_label=False)
|
| 312 |
|