sasha HF staff commited on
Commit
87f42d6
1 Parent(s): 02758b3

Update app.py

Browse files

I don't understand anything at this point

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,8 @@ 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
- info = datasets.get_dataset_infos(dset)
 
20
 
21
  dset_config = st.selectbox('What config do you want to use?', options=list(info))
22
 
 
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
+
20
+ info = datasets.get_dataset_infos(dset[0])
21
 
22
  dset_config = st.selectbox('What config do you want to use?', options=list(info))
23