sasha HF Staff commited on
Commit
96059b8
·
1 Parent(s): 3439e0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ st.title("Metric Compare")
13
  st.markdown("## Choose the dataset you want to use for the comparison:")
14
 
15
  api = HfApi()
16
- datasets = [d['Dataset Name'] for d in api.list_datasets(filter="task_categories:text-classification", sort = "downloads", direction=-1, limit = 20)]
17
 
18
  dset = st.selectbox('Choose a dataset from the Hub', options=datasets)
19
 
 
13
  st.markdown("## Choose the dataset you want to use for the comparison:")
14
 
15
  api = HfApi()
16
+ datasets = [d.id for d in api.list_datasets(filter="task_categories:text-classification", sort = "downloads", direction=-1, limit = 20)]
17
 
18
  dset = st.selectbox('Choose a dataset from the Hub', options=datasets)
19