Spaces:
Runtime error
Runtime error
Commit ·
ecd298c
1
Parent(s): 7631603
add
Browse files61 unmodified lines6263646566676861 unmodified linesif dataframe is None or dataframe.empty:raise ValueError("Leaderboard DataFrame is empty or None.")styler = dataframe.style.format("{:.1f}")return gr.components.Dataframe(value=styler,headers=[c.name for c in fields(AutoEvalColumn)],61 unmodified lines62636465666768697061 unmodified linesif dataframe is None or dataframe.empty:raise ValueError("Leaderboard DataFrame is empty or None.")# pdb.set_trace()num_cols = dataframe.select_dtypes(include=['number']).columnsstyler = dataframe.style.format({col: "{:.2f}" for col in num_cols})return gr.components.Dataframe(value=styler,headers=[c.name for c in fields(AutoEvalColumn)],
app.py+3-1