Update app.py
Browse files
app.py
CHANGED
|
@@ -896,19 +896,19 @@ with gr.Blocks(css=css, title="K R&D Lab · S1 Biomedical") as demo:
|
|
| 896 |
np_radius = gr.Slider(2, 20, value=5, step=1, label="Radius (nm)")
|
| 897 |
np_peg = gr.Slider(0, 1, value=0.3, step=0.05, label="PEG density")
|
| 898 |
np_btn = gr.Button("Generate", variant="primary")
|
| 899 |
-
np_plot = gr.
|
| 900 |
np_btn.click(plot_nanoparticle, [np_radius, np_peg], np_plot)
|
| 901 |
|
| 902 |
with gr.TabItem("DNA Helix"):
|
| 903 |
gr.Markdown("### 3D Model of a DNA Double Helix")
|
| 904 |
dna_btn = gr.Button("Generate DNA", variant="primary")
|
| 905 |
-
dna_plot = gr.
|
| 906 |
dna_btn.click(plot_dna, [], dna_plot)
|
| 907 |
|
| 908 |
with gr.TabItem("Protein Corona"):
|
| 909 |
gr.Markdown("### Schematic of Protein Corona on Nanoparticle")
|
| 910 |
corona_btn = gr.Button("Show Corona", variant="primary")
|
| 911 |
-
corona_plot = gr.
|
| 912 |
corona_btn.click(plot_corona, [], corona_plot)
|
| 913 |
|
| 914 |
# === Journal (покращений) ===
|
|
|
|
| 896 |
np_radius = gr.Slider(2, 20, value=5, step=1, label="Radius (nm)")
|
| 897 |
np_peg = gr.Slider(0, 1, value=0.3, step=0.05, label="PEG density")
|
| 898 |
np_btn = gr.Button("Generate", variant="primary")
|
| 899 |
+
np_plot = gr.Plot(label="Nanoparticle")
|
| 900 |
np_btn.click(plot_nanoparticle, [np_radius, np_peg], np_plot)
|
| 901 |
|
| 902 |
with gr.TabItem("DNA Helix"):
|
| 903 |
gr.Markdown("### 3D Model of a DNA Double Helix")
|
| 904 |
dna_btn = gr.Button("Generate DNA", variant="primary")
|
| 905 |
+
dna_plot = gr.Plot()
|
| 906 |
dna_btn.click(plot_dna, [], dna_plot)
|
| 907 |
|
| 908 |
with gr.TabItem("Protein Corona"):
|
| 909 |
gr.Markdown("### Schematic of Protein Corona on Nanoparticle")
|
| 910 |
corona_btn = gr.Button("Show Corona", variant="primary")
|
| 911 |
+
corona_plot = gr.Plot()
|
| 912 |
corona_btn.click(plot_corona, [], corona_plot)
|
| 913 |
|
| 914 |
# === Journal (покращений) ===
|