Commit
·
9abe3d0
1
Parent(s):
7010654
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
|
@@ -213,6 +213,9 @@ css = """
|
|
| 213 |
}
|
| 214 |
"""
|
| 215 |
|
|
|
|
|
|
|
|
|
|
| 216 |
# --- Example Sequences ---
|
| 217 |
examples = [
|
| 218 |
[
|
|
@@ -233,7 +236,10 @@ examples = [
|
|
| 233 |
]
|
| 234 |
|
| 235 |
# --- Gradio Blocks App ---
|
| 236 |
-
with gr.Blocks(theme=gr.themes.Soft(),
|
|
|
|
|
|
|
|
|
|
| 237 |
# Header
|
| 238 |
with gr.Column(elem_classes="header-text"):
|
| 239 |
gr.Markdown(
|
|
|
|
| 213 |
}
|
| 214 |
"""
|
| 215 |
|
| 216 |
+
# Inline CSS injection via HTML to survive HF Spaces iframe stripping
|
| 217 |
+
inline_style = f"<style>{css}</style>"
|
| 218 |
+
|
| 219 |
# --- Example Sequences ---
|
| 220 |
examples = [
|
| 221 |
[
|
|
|
|
| 236 |
]
|
| 237 |
|
| 238 |
# --- Gradio Blocks App ---
|
| 239 |
+
with gr.Blocks(theme=gr.themes.Soft(), title="Antibody Predictor") as app:
|
| 240 |
+
# Inject CSS early; HF Spaces strips gr.Blocks(css=...) in iframes
|
| 241 |
+
gr.HTML(inline_style)
|
| 242 |
+
|
| 243 |
# Header
|
| 244 |
with gr.Column(elem_classes="header-text"):
|
| 245 |
gr.Markdown(
|