gardarjuto commited on
Commit
0be9d2f
·
1 Parent(s): 90021e9

fix: type hints for styling function

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import subprocess
2
  import gradio as gr
3
  import pandas as pd
 
4
  from apscheduler.schedulers.background import BackgroundScheduler
5
  from huggingface_hub import snapshot_download
6
 
@@ -76,7 +77,7 @@ def update_table(
76
  return df
77
 
78
 
79
- def apply_format_styling(df: pd.DataFrame) -> pd.io.formats.style.Styler:
80
  df = df.style.format(
81
  {c: "{:.1f}" for c in BENCHMARK_COLS} | {AutoEvalColumn.average.name: "{:.2f}"}
82
  )
 
1
  import subprocess
2
  import gradio as gr
3
  import pandas as pd
4
+ import pandas.io.formats.style as style
5
  from apscheduler.schedulers.background import BackgroundScheduler
6
  from huggingface_hub import snapshot_download
7
 
 
77
  return df
78
 
79
 
80
+ def apply_format_styling(df: pd.DataFrame) -> style.Styler:
81
  df = df.style.format(
82
  {c: "{:.1f}" for c in BENCHMARK_COLS} | {AutoEvalColumn.average.name: "{:.2f}"}
83
  )