Hack90 commited on
Commit
7cee527
1 Parent(s): 463cf93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
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
- [(df = pd.read_csv("training_data_5.csv")['param_type'].unique()],
135
  multiple=True,
136
- selected=["14", "70"],
137
  )
138
  ui.input_selectize(
139
  "model_type",
140
  "Select Model Type:",
141
- [(df = pd.read_csv("training_data_5.csv")['model_type'].unique()],
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
- ["pythia", "denseformer", "evo"],
194
  multiple=True,
195
  selected=["evo", "denseformer"],
196
  )
197
  ui.input_selectize(
198
  "loss_type_scale",
199
  "Select Loss Type:",
200
- ["compliment", "cross_entropy", "headless", "2d", "2d_representation_MSEPlusCE"],
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
  )