Update app.py
Browse files
app.py
CHANGED
|
@@ -37,12 +37,20 @@ COLUMN_GROUPS = {
|
|
| 37 |
"nsfw_dark_group": ["avg_nsfw_score", "avg_dark_score"],
|
| 38 |
"length_adherence_group": ["avg_length_error_pct", "creative_writing_wc_exceeded_pct"],
|
| 39 |
"politics_agg_group": ["govt", "dipl", "econ", "scty"],
|
| 40 |
-
"politics_axes_group":
|
| 41 |
-
'Federal-Unitary'
|
| 42 |
-
'
|
| 43 |
-
'
|
| 44 |
-
'
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
"world_model_group": [
|
| 47 |
'wm_recipe_percent_error', 'wm_geoguesser_mae', 'wm_weight_percent_error',
|
| 48 |
'wm_music_mae', 'wm_youtube_view_percent_error', 'Show Rec Score',
|
|
@@ -913,11 +921,11 @@ ALL_COLUMN_DEFS = {
|
|
| 913 |
col: create_numeric_column(
|
| 914 |
col,
|
| 915 |
headerComponentParams={"template": template_with_split_header.format(high=col.split('-')[0], low=col.split('-')[1])},
|
| 916 |
-
width=
|
| 917 |
valueFormatter={"function": "params.value == null ? '' : params.value.toFixed(1) + '%'"},
|
| 918 |
cellClass="border-left" if i == 0 else "",
|
| 919 |
filterParams={"defaultOption": "inRange"}
|
| 920 |
-
) for i, col in enumerate(COLUMN_GROUPS["politics_axes_group"])
|
| 921 |
},
|
| 922 |
|
| 923 |
# --- Other Toggles ---
|
|
|
|
| 37 |
"nsfw_dark_group": ["avg_nsfw_score", "avg_dark_score"],
|
| 38 |
"length_adherence_group": ["avg_length_error_pct", "creative_writing_wc_exceeded_pct"],
|
| 39 |
"politics_agg_group": ["govt", "dipl", "econ", "scty"],
|
| 40 |
+
"politics_axes_group": {
|
| 41 |
+
'Federal-Unitary': 140,
|
| 42 |
+
'Democratic-Autocratic': 175,
|
| 43 |
+
'Security-Freedom': 150,
|
| 44 |
+
'Nationalism-Internationalism': 200,
|
| 45 |
+
'Militarist-Pacifist': 150,
|
| 46 |
+
'Assimilationist-Multiculturalist': 230,
|
| 47 |
+
'Collectivize-Privatize': 170,
|
| 48 |
+
'Planned-LaissezFaire': 170,
|
| 49 |
+
'Isolationism-Globalism': 170,
|
| 50 |
+
'Irreligious-Religious': 160,
|
| 51 |
+
'Progressive-Traditional': 170,
|
| 52 |
+
'Acceleration-Bioconservative': 220
|
| 53 |
+
},
|
| 54 |
"world_model_group": [
|
| 55 |
'wm_recipe_percent_error', 'wm_geoguesser_mae', 'wm_weight_percent_error',
|
| 56 |
'wm_music_mae', 'wm_youtube_view_percent_error', 'Show Rec Score',
|
|
|
|
| 921 |
col: create_numeric_column(
|
| 922 |
col,
|
| 923 |
headerComponentParams={"template": template_with_split_header.format(high=col.split('-')[0], low=col.split('-')[1])},
|
| 924 |
+
width=width, # Use the width from the dictionary
|
| 925 |
valueFormatter={"function": "params.value == null ? '' : params.value.toFixed(1) + '%'"},
|
| 926 |
cellClass="border-left" if i == 0 else "",
|
| 927 |
filterParams={"defaultOption": "inRange"}
|
| 928 |
+
) for i, (col, width) in enumerate(COLUMN_GROUPS["politics_axes_group"].items())
|
| 929 |
},
|
| 930 |
|
| 931 |
# --- Other Toggles ---
|