Update space
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
from gradio_leaderboard import Leaderboard, ColumnFilter, SelectColumns
|
3 |
import pandas as pd
|
4 |
from apscheduler.schedulers.background import BackgroundScheduler
|
5 |
from huggingface_hub import snapshot_download
|
@@ -71,7 +71,10 @@ def init_leaderboard(dataframe):
|
|
71 |
# label="Select Columns to Display:",
|
72 |
# ),
|
73 |
# search_columns=None,
|
74 |
-
search_columns=[AutoEvalColumn.model.name, AutoEvalColumn.license.name],
|
|
|
|
|
|
|
75 |
hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
|
76 |
filter_columns=None,
|
77 |
# [
|
|
|
1 |
import gradio as gr
|
2 |
+
from gradio_leaderboard import Leaderboard, ColumnFilter, SelectColumns, SearchColumns
|
3 |
import pandas as pd
|
4 |
from apscheduler.schedulers.background import BackgroundScheduler
|
5 |
from huggingface_hub import snapshot_download
|
|
|
71 |
# label="Select Columns to Display:",
|
72 |
# ),
|
73 |
# search_columns=None,
|
74 |
+
# search_columns=[AutoEvalColumn.model.name, AutoEvalColumn.license.name],
|
75 |
+
search_columns=SearchColumns(primary_column="model", secondary_columns="license",
|
76 |
+
placeholder="Search by name or country. To search by country, type 'country:<query>'",
|
77 |
+
label="Search"),
|
78 |
hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
|
79 |
filter_columns=None,
|
80 |
# [
|