Spaces:
Runtime error
Runtime error
Update app.py
Browse filesoops, note to self, don't rename variables
app.py
CHANGED
@@ -13,11 +13,11 @@ st.title("Metric Compare")
|
|
13 |
st.markdown("### Choose the dataset you want to use for the comparison:")
|
14 |
|
15 |
api = HfApi()
|
16 |
-
|
17 |
|
18 |
-
dset = st.selectbox('Choose a dataset from the Hub', options=
|
19 |
|
20 |
-
info = datasets.get_dataset_infos(dset
|
21 |
|
22 |
dset_config = st.selectbox('What config do you want to use?', options=list(info))
|
23 |
|
|
|
13 |
st.markdown("### Choose the dataset you want to use for the comparison:")
|
14 |
|
15 |
api = HfApi()
|
16 |
+
dsets = [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=dsets)
|
19 |
|
20 |
+
info = datasets.get_dataset_infos(dset)
|
21 |
|
22 |
dset_config = st.selectbox('What config do you want to use?', options=list(info))
|
23 |
|