Spaces:
Runtime error
Runtime error
Refactor init_leaderboard function to use default textbox and checkbox values
Browse files
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",
|