speech-test commited on
Commit
a046b93
β€’
1 Parent(s): 0942314

re-sort languages

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -88,7 +88,7 @@ def parse_metrics_rows(meta):
88
  def get_data():
89
  data = []
90
  model_ids = get_model_ids()
91
- for model_id in tqdm(model_ids):
92
  meta = get_metadata(model_id)
93
  if meta is None:
94
  continue
@@ -145,7 +145,7 @@ st.markdown(
145
 
146
  lang = st.sidebar.selectbox(
147
  "Language",
148
- sorted(dataframe["lang"].unique()),
149
  format_func=lambda key: lang2name.get(key, key),
150
  index=0,
151
  )
 
88
  def get_data():
89
  data = []
90
  model_ids = get_model_ids()
91
+ for model_id in tqdm(model_ids[:10]):
92
  meta = get_metadata(model_id)
93
  if meta is None:
94
  continue
 
145
 
146
  lang = st.sidebar.selectbox(
147
  "Language",
148
+ sorted(dataframe["lang"].unique(), key=lambda key: lang2name.get(key, key)),
149
  format_func=lambda key: lang2name.get(key, key),
150
  index=0,
151
  )