Minette Kaunismäki commited on
Commit
f9d57b3
·
1 Parent(s): 6d8f26e

removed raw win rate and swaped log to main plot view

Browse files
Files changed (5) hide show
  1. .DS_Store +0 -0
  2. README.md +0 -2
  3. app.py +4 -3
  4. data/.DS_Store +0 -0
  5. ui.py +4 -5
.DS_Store ADDED
Binary file (8.2 kB). View file
 
README.md CHANGED
@@ -30,8 +30,6 @@ pip install "gradio==5.19.0" pandas -r requirements.txt
30
  python app.py
31
  ```
32
 
33
- The app is served at `http://127.0.0.1:7860`.
34
-
35
  `requirements.txt` lists Plotly. Gradio and pandas are required locally;
36
  Hugging Face Spaces installs Gradio from the YAML `sdk_version` above.
37
 
 
30
  python app.py
31
  ```
32
 
 
 
33
  `requirements.txt` lists Plotly. Gradio and pandas are required locally;
34
  Hugging Face Spaces installs Gradio from the YAML `sdk_version` above.
35
 
app.py CHANGED
@@ -2286,7 +2286,7 @@ def load_qwen_combined_dataframe(path):
2286
  df = df[~df["Model"].astype(str).str.startswith("#")].copy()
2287
  df["Model"] = df["Model"].astype(str).str.strip()
2288
 
2289
- return _as_numeric(
2290
  df,
2291
  [
2292
  "Price / Image (USD)",
@@ -2296,7 +2296,9 @@ def load_qwen_combined_dataframe(path):
2296
  "Rapidata Elo",
2297
  "Datapoint Elo",
2298
  ],
2299
- ).reset_index(drop=True)
 
 
2300
 
2301
 
2302
  df = load_oneig_dataframe(oneig_path)
@@ -2369,7 +2371,6 @@ qwen_display_columns = [
2369
  "Datapoint Elo",
2370
  "Rapidata Elo",
2371
  "P-Judge Overall",
2372
- "Raw Win Rate",
2373
  "Median Generation Time (s)",
2374
  "Min Generation Time (s)",
2375
  "Price / Image (USD)",
 
2286
  df = df[~df["Model"].astype(str).str.startswith("#")].copy()
2287
  df["Model"] = df["Model"].astype(str).str.strip()
2288
 
2289
+ df = _as_numeric(
2290
  df,
2291
  [
2292
  "Price / Image (USD)",
 
2296
  "Rapidata Elo",
2297
  "Datapoint Elo",
2298
  ],
2299
+ )
2300
+ df = df.drop(columns=["Raw Win Rate"], errors="ignore")
2301
+ return df.reset_index(drop=True)
2302
 
2303
 
2304
  df = load_oneig_dataframe(oneig_path)
 
2371
  "Datapoint Elo",
2372
  "Rapidata Elo",
2373
  "P-Judge Overall",
 
2374
  "Median Generation Time (s)",
2375
  "Min Generation Time (s)",
2376
  "Price / Image (USD)",
data/.DS_Store ADDED
Binary file (6.15 kB). View file
 
ui.py CHANGED
@@ -27,11 +27,11 @@ _PARETO_SLOT_COUNT = 1 + MAX_PARETO_METRICS * 8
27
  _PARETO_PRICE_COLUMN = "Price / Image (USD)"
28
  _PARETO_TIME_COLUMN = "Min Generation Time (s)"
29
  _PARETO_SCALE_CHOICES = [
30
- ("Linear", "Linear"),
31
  ("Log", "Logarithmic"),
 
32
  ]
33
  _PARETO_SCALE_VALUES = {value for _, value in _PARETO_SCALE_CHOICES}
34
- _PARETO_SCALE_DEFAULT = "Linear"
35
 
36
  TAB_LEADERBOARDS = "leaderboards"
37
  TAB_PARETO = "pareto"
@@ -592,7 +592,6 @@ def _display_label(column):
592
  "Arena Art Elo": "Art",
593
  "Arena Portraits Elo": "Portraits",
594
  "Arena Text Rendering Elo": "Text Rendering",
595
- "Raw Win Rate": "Raw win rate",
596
  "Median Generation Time (s)": "Median generation time",
597
  "Min Generation Time (s)": "Min generation time",
598
  "Price / Image (USD)": "Price per image",
@@ -1242,8 +1241,8 @@ def render_image_workspace(datasets, metrics, default_dataset_id, default_metric
1242
  "see which model it is."
1243
  "</p>"
1244
  "<p class='view-help'>"
1245
- "You can switch between linear and logarithmic scale for all "
1246
- "the plots, or individually for each plots."
1247
  "</p>",
1248
  elem_classes="view-help-host",
1249
  )
 
27
  _PARETO_PRICE_COLUMN = "Price / Image (USD)"
28
  _PARETO_TIME_COLUMN = "Min Generation Time (s)"
29
  _PARETO_SCALE_CHOICES = [
 
30
  ("Log", "Logarithmic"),
31
+ ("Linear", "Linear"),
32
  ]
33
  _PARETO_SCALE_VALUES = {value for _, value in _PARETO_SCALE_CHOICES}
34
+ _PARETO_SCALE_DEFAULT = "Logarithmic"
35
 
36
  TAB_LEADERBOARDS = "leaderboards"
37
  TAB_PARETO = "pareto"
 
592
  "Arena Art Elo": "Art",
593
  "Arena Portraits Elo": "Portraits",
594
  "Arena Text Rendering Elo": "Text Rendering",
 
595
  "Median Generation Time (s)": "Median generation time",
596
  "Min Generation Time (s)": "Min generation time",
597
  "Price / Image (USD)": "Price per image",
 
1241
  "see which model it is."
1242
  "</p>"
1243
  "<p class='view-help'>"
1244
+ "Plots use a logarithmic scale by default. You can switch "
1245
+ "to linear for all plots, or individually for each plot."
1246
  "</p>",
1247
  elem_classes="view-help-host",
1248
  )