pufanyi commited on
Commit
aa10f5f
·
1 Parent(s): a6fb1be

Refactor init_leaderboard function to use default textbox and checkbox values

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -75,6 +75,7 @@ def GET_DEFAULT_TEXTBOX():
75
  return gr.Textbox("", placeholder="🔍 Search Models... [press enter]", label="Filter Models by Name")
76
 
77
  def GET_DEFAULT_CHECKBOX():
 
78
  return gr.CheckboxGroup(
79
  choices=[c.name for c in fields(AutoEvalColumn) if not c.hidden],
80
  label="Select Columns to Display",
 
75
  return gr.Textbox("", placeholder="🔍 Search Models... [press enter]", label="Filter Models by Name")
76
 
77
  def GET_DEFAULT_CHECKBOX():
78
+ print("Choices:", [c.name for c in fields(AutoEvalColumn) if not c.hidden])
79
  return gr.CheckboxGroup(
80
  choices=[c.name for c in fields(AutoEvalColumn) if not c.hidden],
81
  label="Select Columns to Display",