Spaces:
Running on Zero
Running on Zero
Condensate Titration: let the generated-images gallery scroll
Browse files211 unmodified lines212213214215216217218140 unmodified lines3593603613623633644 unmodified lines369370371372373374375211 unmodified linescurve_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",)with gr.Accordion("Per-image results", open=False):140 unmodified linesshow_progress="hidden", trigger_mode="always_last")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:gr.Markdown("""# CELL-FM211 unmodified lines212213214215216217218140 unmodified lines3593603613623633643653663673683693704 unmodified lines375376377378379380381211 unmodified linescurve_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", elem_classes="cs-gallery",)with gr.Accordion("Per-image results", open=False):140 unmodified linesshow_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=CSS, head=viewer.HEAD) as demo:gr.Markdown("""# CELL-FM
app.py+8-2