Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,9 @@ mpl.rcParams.update(mpl.rcParamsDefault)
|
|
22 |
df = pd.read_parquet('virus_ds.parquet')
|
23 |
virus = df['Organism_Name'].unique()
|
24 |
virus = {v: v for v in virus}
|
|
|
|
|
|
|
25 |
|
26 |
############################################################# Filter and Select ########################################################
|
27 |
def filter_and_select(group):
|
@@ -131,14 +134,14 @@ with ui.navset_card_tab(id="tab"):
|
|
131 |
ui.input_selectize(
|
132 |
"param_type",
|
133 |
"Select Param Type:",
|
134 |
-
|
135 |
multiple=True,
|
136 |
-
|
137 |
)
|
138 |
ui.input_selectize(
|
139 |
"model_type",
|
140 |
"Select Model Type:",
|
141 |
-
|
142 |
multiple=True,
|
143 |
selected=["pythia", "denseformer"],
|
144 |
)
|
@@ -190,14 +193,14 @@ with ui.navset_card_tab(id="tab"):
|
|
190 |
ui.input_selectize(
|
191 |
"model_type_scale",
|
192 |
"Select Model Type:",
|
193 |
-
|
194 |
multiple=True,
|
195 |
selected=["evo", "denseformer"],
|
196 |
)
|
197 |
ui.input_selectize(
|
198 |
"loss_type_scale",
|
199 |
"Select Loss Type:",
|
200 |
-
|
201 |
multiple=True,
|
202 |
selected=["cross_entropy"],
|
203 |
)
|
|
|
22 |
df = pd.read_parquet('virus_ds.parquet')
|
23 |
virus = df['Organism_Name'].unique()
|
24 |
virus = {v: v for v in virus}
|
25 |
+
loss_typesss = pd.read_csv("training_data_5.csv")['loss_type'].unique()
|
26 |
+
model_typesss = pd.read_csv("training_data_5.csv")['model_type'].unique()
|
27 |
+
param_typesss = pd.read_csv("training_data_5.csv")['param_type'].unique()
|
28 |
|
29 |
############################################################# Filter and Select ########################################################
|
30 |
def filter_and_select(group):
|
|
|
134 |
ui.input_selectize(
|
135 |
"param_type",
|
136 |
"Select Param Type:",
|
137 |
+
param_typesss,
|
138 |
multiple=True,
|
139 |
+
|
140 |
)
|
141 |
ui.input_selectize(
|
142 |
"model_type",
|
143 |
"Select Model Type:",
|
144 |
+
model_typesss,
|
145 |
multiple=True,
|
146 |
selected=["pythia", "denseformer"],
|
147 |
)
|
|
|
193 |
ui.input_selectize(
|
194 |
"model_type_scale",
|
195 |
"Select Model Type:",
|
196 |
+
model_typesss,
|
197 |
multiple=True,
|
198 |
selected=["evo", "denseformer"],
|
199 |
)
|
200 |
ui.input_selectize(
|
201 |
"loss_type_scale",
|
202 |
"Select Loss Type:",
|
203 |
+
loss_typesss,
|
204 |
multiple=True,
|
205 |
selected=["cross_entropy"],
|
206 |
)
|