Fix private Space Gradio 6 runtime API usage
Browse files
app.py
CHANGED
|
@@ -294,9 +294,14 @@ def load_example(example_name: str):
|
|
| 294 |
)
|
| 295 |
|
| 296 |
|
| 297 |
-
with gr.Blocks(
|
| 298 |
gr.Markdown(
|
| 299 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 300 |
<div id="hero">
|
| 301 |
<div class="eyebrow">BioAssayAlign 路 scientist-facing ranking demo</div>
|
| 302 |
<div class="hero-title">Rank candidate molecules for a bioassay</div>
|
|
@@ -356,7 +361,7 @@ Use the structured fields if you have them. Missing fields are allowed, but spec
|
|
| 356 |
|
| 357 |
summary = gr.Markdown()
|
| 358 |
with gr.Accordion("Serialized assay text used by the model", open=False):
|
| 359 |
-
assay_preview = gr.Textbox(lines=12,
|
| 360 |
ranked_df = gr.Dataframe(label="Ranked molecules", interactive=False, wrap=True)
|
| 361 |
invalid_df = gr.Dataframe(label="Rejected inputs", interactive=False, wrap=True)
|
| 362 |
download_file = gr.File(label="Download CSV")
|
|
|
|
| 294 |
)
|
| 295 |
|
| 296 |
|
| 297 |
+
with gr.Blocks(title="BioAssayAlign Compatibility Explorer") as demo:
|
| 298 |
gr.Markdown(
|
| 299 |
"""
|
| 300 |
+
<style>
|
| 301 |
+
"""
|
| 302 |
+
+ CSS
|
| 303 |
+
+ """
|
| 304 |
+
</style>
|
| 305 |
<div id="hero">
|
| 306 |
<div class="eyebrow">BioAssayAlign 路 scientist-facing ranking demo</div>
|
| 307 |
<div class="hero-title">Rank candidate molecules for a bioassay</div>
|
|
|
|
| 361 |
|
| 362 |
summary = gr.Markdown()
|
| 363 |
with gr.Accordion("Serialized assay text used by the model", open=False):
|
| 364 |
+
assay_preview = gr.Textbox(lines=12, label="Model-facing assay text")
|
| 365 |
ranked_df = gr.Dataframe(label="Ranked molecules", interactive=False, wrap=True)
|
| 366 |
invalid_df = gr.Dataframe(label="Rejected inputs", interactive=False, wrap=True)
|
| 367 |
download_file = gr.File(label="Download CSV")
|