Spaces:
Running
Running
Commit ·
d966e65
1
Parent(s): 4904727
fix: ensure initial scaling plot uses Pareto frontier by default
Browse filesThe initial plot was generated with use_pareto=False even though
the UI radio button defaults to "Fit Pareto Frontier" (value=True).
This caused a mismatch between the UI selection and the displayed plot.
app.py
CHANGED
|
@@ -1272,7 +1272,7 @@ if __name__ == "__main__":
|
|
| 1272 |
)
|
| 1273 |
|
| 1274 |
with gr.Column(scale=3):
|
| 1275 |
-
initial_scaling_fig = create_scaling_plot(data_manager, last_period) if last_period else go.Figure()
|
| 1276 |
scaling_plot = gr.Plot(initial_scaling_fig)
|
| 1277 |
|
| 1278 |
def update_scaling_mode_visibility(mode):
|
|
|
|
| 1272 |
)
|
| 1273 |
|
| 1274 |
with gr.Column(scale=3):
|
| 1275 |
+
initial_scaling_fig = create_scaling_plot(data_manager, last_period, use_pareto=True) if last_period else go.Figure()
|
| 1276 |
scaling_plot = gr.Plot(initial_scaling_fig)
|
| 1277 |
|
| 1278 |
def update_scaling_mode_visibility(mode):
|