Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 (
|
| 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 (
|
| 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():
|