andreamena commited on
Commit
2ce6de3
·
verified ·
1 Parent(s): 0b9200e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -208,7 +208,7 @@ def generate_and_screen(num_to_gen, app_mode, toggle_view):
208
  pareto_indices.append(i)
209
 
210
  # APPLY THE TOGGLE logic (Point 1 from Professor)
211
- if toggle_view == "Multi-objective Pareto optimal (shows only best candidates)":
212
  df = df.loc[pareto_indices]
213
 
214
  df = df.sort_values(by="_s", ascending=False)
@@ -283,7 +283,7 @@ with gr.Blocks(title="PolymerDesignAI") as demo:
283
  value="Aerospace Mode",
284
  label="Select Optimization Mode"
285
  )
286
- toggle_view = gr.Radio(["Single-objective ranking", "Multi-objective Pareto optimal (shows only best candidates)"], value="Single-objective ranking", label="Selection Strategy")
287
 
288
  with gr.Row():
289
  with gr.Column():
 
208
  pareto_indices.append(i)
209
 
210
  # APPLY THE TOGGLE logic (Point 1 from Professor)
211
+ if toggle_view == "Multi-objective Pareto optimal (Best-in-Class candidates)":
212
  df = df.loc[pareto_indices]
213
 
214
  df = df.sort_values(by="_s", ascending=False)
 
283
  value="Aerospace Mode",
284
  label="Select Optimization Mode"
285
  )
286
+ toggle_view = gr.Radio(["Single-objective ranking", "Multi-objective Pareto optimal (Best-in-Class candidates)"], value="Single-objective ranking", label="Selection Strategy")
287
 
288
  with gr.Row():
289
  with gr.Column():