Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/services/open_asr_language_sync_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
MANAGED_METHODOLOGY_PREFIX,
MODEL_PAPER_ARXIV_IDS,
RTFX_METRIC,
SHOWN_MODEL_GROUPS,
SPACE_APP_URL,
SPACE_SOURCE_URL,
TASK_SLUG,
Expand Down Expand Up @@ -168,7 +169,7 @@ def fetch_open_asr_language_leaderboards(
payload = client.predict(
version_id="latest",
search_query="",
show_proprietary=True,
show_proprietary=SHOWN_MODEL_GROUPS,
selected=[label, RTFX_COLUMN],
zoom=AVERAGE_VIEW,
api_name=MULTILINGUAL_TABLE_API,
Expand Down
3 changes: 2 additions & 1 deletion backend/services/open_asr_sync_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
MAX_EXPECTED_ENTRIES = 150

MAIN_TABLE_API = "/_main_table_update"
SHOWN_MODEL_GROUPS = ["Show proprietary (API) models", "Show ensemble models"]
LICENSE_COLUMN = "License"


Expand Down Expand Up @@ -425,7 +426,7 @@ def fetch_open_asr_leaderboard(
payload = client.predict(
version_id="latest",
search_query="",
show_proprietary=True,
show_proprietary=SHOWN_MODEL_GROUPS,
show_llm=False,
selected_columns=default_table_columns(client),
api_name=MAIN_TABLE_API,
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/evaluation/test_open_asr_language_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def predict(self, **kwargs):
assert calls[0] == {
"version_id": "latest",
"search_query": "",
"show_proprietary": True,
"show_proprietary": ["Show proprietary (API) models", "Show ensemble models"],
"selected": ["🇩🇪 German", "RTFx ⬆️️"],
"zoom": "Language averages",
"api_name": "/_render_multilingual_combined",
Expand Down
6 changes: 5 additions & 1 deletion backend/tests/evaluation/test_open_asr_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ def predict(
api_name,
):
assert version_id == "latest"
assert (search_query, show_proprietary, show_llm) == ("", True, False)
assert (search_query, show_proprietary, show_llm) == (
"",
["Show proprietary (API) models", "Show ensemble models"],
False,
)
assert selected_columns == [*SPACE_DEFAULT_COLUMNS, "License"]
assert api_name == "/_main_table_update"
return {
Expand Down
Loading