sasha HF Staff commited on
Commit
2cca9df
·
1 Parent(s): 96059b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,7 +19,8 @@ dset = st.selectbox('Choose a dataset from the Hub', options=datasets)
19
 
20
  st.markdown("## Now select up to 5 models to compare their performance:")
21
 
22
- models = api.list_models(filter="trained_dataset:imdb", sort = "downloads", direction=-1, limit = 20)
 
23
 
24
  model = st.multiselect(
25
  'Choose the models that have been trained/finetuned on this dataset',
 
19
 
20
  st.markdown("## Now select up to 5 models to compare their performance:")
21
 
22
+ filt = ModelFilter(trained_dataset=dset)
23
+ models = api.list_models(filter=filt, sort = "downloads", direction=-1, limit = 20)
24
 
25
  model = st.multiselect(
26
  'Choose the models that have been trained/finetuned on this dataset',