Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -83,9 +83,14 @@ with ui.navset_card_tab(id="tab"):
|
|
83 |
ui.input_selectize("virus_selector_1", "Select your viruses:", virus_new, multiple=True, selected=None)
|
84 |
|
85 |
@render.plot()
|
86 |
-
def
|
|
|
87 |
df = MASTER_DF[MASTER_DF["organism_name"].isin(input.virus_selector_1())].copy()
|
|
|
88 |
ax = sns.histplot(data=df, x='charts', hue='organism_name')
|
|
|
|
|
|
|
89 |
return ax
|
90 |
|
91 |
with ui.nav_panel("Viral Microstructure"):
|
|
|
83 |
ui.input_selectize("virus_selector_1", "Select your viruses:", virus_new, multiple=True, selected=None)
|
84 |
|
85 |
@render.plot()
|
86 |
+
def plot_distro_new():
|
87 |
+
import seaborn as sns
|
88 |
df = MASTER_DF[MASTER_DF["organism_name"].isin(input.virus_selector_1())].copy()
|
89 |
+
print(df.head(10))
|
90 |
ax = sns.histplot(data=df, x='charts', hue='organism_name')
|
91 |
+
ax.set_title("Palmer Penguins")
|
92 |
+
ax.set_xlabel("Mass (g)")
|
93 |
+
ax.set_ylabel("Count")
|
94 |
return ax
|
95 |
|
96 |
with ui.nav_panel("Viral Microstructure"):
|