Spaces:
Running on Zero
Running on Zero
Condensate Titration: let the generated-images gallery scroll
Browse files211 unmodified lines212213214215215216217218140 unmodified lines3593603613623633643653663673683693704 unmodified lines375376377372378379380381211 unmodified lines curve_plot = gr.Plot(label="Condensate titration curve") sample_plot = gr.Gallery( label="Generated images (protein channel), captioned with the protein expression level (a.u.)", columns=8, height=520, allow_preview=True, object_fit="contain", columns=8, height=520, allow_preview=True, object_fit="contain", elem_classes="cs-gallery", )
with gr.Accordion("Per-image results", open=False):140 unmodified lines show_progress="hidden", trigger_mode="always_last")
# Gradio's gallery block clips at its height; make the grid scroll inside it insteadCSS = viewer.CSS + """.cs-gallery .gallery-container { height: 100%; }.cs-gallery .grid-wrap { height: 100%; overflow-y: auto; }"""
CITATION = """@article{zheng2026virtual, title = {Virtual experiments bridge sequence and microscopy with generative models}, author = {Zheng, Dihan and Hong, Kibeom and Huang, Bo},4 unmodified lines}"""
with gr.Blocks(title="CELL-FM", theme=gr.themes.Soft(), css=viewer.CSS, head=viewer.HEAD) as demo:with gr.Blocks(title="CELL-FM", theme=gr.themes.Soft(), css=CSS, head=viewer.HEAD) as demo: gr.Markdown( """ # CELL-FMapp.py+8-2