Spaces:
Running
Running
chore: default pp tg to 512 and 128 for the plots
Browse files- src/app.py +16 -3
src/app.py
CHANGED
@@ -181,17 +181,31 @@ async def main():
|
|
181 |
)
|
182 |
|
183 |
with plot_col2:
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
plot_pp = st.selectbox(
|
185 |
"Select PP Config for Comparison",
|
186 |
-
options=
|
187 |
key="plot_pp_selector",
|
|
|
188 |
)
|
189 |
|
190 |
with plot_col3:
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
plot_tg = st.selectbox(
|
192 |
"Select TG Config for Comparison",
|
193 |
-
options=
|
194 |
key="plot_tg_selector",
|
|
|
195 |
)
|
196 |
|
197 |
# Create plot filters based on table filters but override the model and configs
|
@@ -202,7 +216,6 @@ async def main():
|
|
202 |
|
203 |
render_performance_plots(df, plot_filters)
|
204 |
|
205 |
-
|
206 |
with guide_col:
|
207 |
render_contribution_guide()
|
208 |
|
|
|
181 |
)
|
182 |
|
183 |
with plot_col2:
|
184 |
+
pp_options = sorted([int(x) for x in df["PP Config"].unique()])
|
185 |
+
default_pp_index = (
|
186 |
+
pp_options.index(std.PP_CONFIG)
|
187 |
+
if std.PP_CONFIG in pp_options
|
188 |
+
else 0
|
189 |
+
)
|
190 |
plot_pp = st.selectbox(
|
191 |
"Select PP Config for Comparison",
|
192 |
+
options=pp_options,
|
193 |
key="plot_pp_selector",
|
194 |
+
index=default_pp_index,
|
195 |
)
|
196 |
|
197 |
with plot_col3:
|
198 |
+
tg_options = sorted([int(x) for x in df["TG Config"].unique()])
|
199 |
+
default_tg_index = (
|
200 |
+
tg_options.index(std.TG_CONFIG)
|
201 |
+
if std.TG_CONFIG in tg_options
|
202 |
+
else 0
|
203 |
+
)
|
204 |
plot_tg = st.selectbox(
|
205 |
"Select TG Config for Comparison",
|
206 |
+
options=tg_options,
|
207 |
key="plot_tg_selector",
|
208 |
+
index=default_tg_index,
|
209 |
)
|
210 |
|
211 |
# Create plot filters based on table filters but override the model and configs
|
|
|
216 |
|
217 |
render_performance_plots(df, plot_filters)
|
218 |
|
|
|
219 |
with guide_col:
|
220 |
render_contribution_guide()
|
221 |
|