lhoestq HF staff commited on
Commit
0d3455a
β€’
1 Parent(s): 2a1cc9d
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -121,7 +121,8 @@ with gr.Blocks(css=css) as demo:
121
 
122
  @demo.load(inputs=session_state, outputs=[dataset_dropdown, loading_codes_json, subset_dropdown, split_dropdown, dataframe, session_state, share_link_textbox, use_locally_markdown, prev_button, next_button, page_html])
123
  def _fetch_datasets(session: str | None, request: gr.Request):
124
- datasets = ["CohereForAI/Global-MMLU"] + [ds.id for ds in HfApi().list_datasets(limit=NUM_TRENDING_DATASETS, sort="trendingScore", direction=-1, filter=["format:parquet"])]
 
125
  session = request.query_params.get(SESSIONS_DIR) or session
126
  if session:
127
  namespace, dataset_name, subset, split, _ = session.split("--")
 
121
 
122
  @demo.load(inputs=session_state, outputs=[dataset_dropdown, loading_codes_json, subset_dropdown, split_dropdown, dataframe, session_state, share_link_textbox, use_locally_markdown, prev_button, next_button, page_html])
123
  def _fetch_datasets(session: str | None, request: gr.Request):
124
+ datasets = ["CohereForAI/Global-MMLU"]
125
+ datasets += [ds.id for ds in HfApi().list_datasets(limit=NUM_TRENDING_DATASETS, sort="trendingScore", direction=-1, filter=["format:parquet"]) if ds.id not in datasets]
126
  session = request.query_params.get(SESSIONS_DIR) or session
127
  if session:
128
  namespace, dataset_name, subset, split, _ = session.split("--")