Spaces:
Sleeping
Sleeping
speech-test
commited on
Commit
•
dadac84
1
Parent(s):
743f616
move the logo
Browse files
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
|
@@ -134,14 +134,13 @@ def generate_dataset_info(datasets):
|
|
134 |
dataframe = get_data()
|
135 |
dataframe = dataframe.fillna("")
|
136 |
|
137 |
-
|
138 |
-
|
139 |
-
st.image("logo.png", width=200)
|
140 |
st.markdown("# Speech Recognition Models Leaderboard")
|
141 |
|
142 |
st.markdown(
|
143 |
"This is a leaderboard over all speech recognition models and datasets.\n\n"
|
144 |
-
"⬅ Please select
|
145 |
)
|
146 |
|
147 |
lang = st.sidebar.selectbox(
|
@@ -198,7 +197,7 @@ dataset_df = dataset_df.reset_index(drop=True)
|
|
198 |
dataset_df.index += 1
|
199 |
|
200 |
# turn the model ids into clickable links
|
201 |
-
dataset_df["
|
202 |
|
203 |
table_html = dataset_df.to_html(escape=False)
|
204 |
table_html = table_html.replace("<th>", '<th align="left">') # left-align the headers
|
|
|
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
|
|
|
134 |
dataframe = get_data()
|
135 |
dataframe = dataframe.fillna("")
|
136 |
|
137 |
+
st.sidebar.image("logo.png", width=200)
|
138 |
+
|
|
|
139 |
st.markdown("# Speech Recognition Models Leaderboard")
|
140 |
|
141 |
st.markdown(
|
142 |
"This is a leaderboard over all speech recognition models and datasets.\n\n"
|
143 |
+
"⬅ Please select the language you want to find a model for from the dropdown on the left."
|
144 |
)
|
145 |
|
146 |
lang = st.sidebar.selectbox(
|
|
|
197 |
dataset_df.index += 1
|
198 |
|
199 |
# turn the model ids into clickable links
|
200 |
+
dataset_df["Model"] = dataset_df["Model"].apply(make_clickable)
|
201 |
|
202 |
table_html = dataset_df.to_html(escape=False)
|
203 |
table_html = table_html.replace("<th>", '<th align="left">') # left-align the headers
|
logo.png
CHANGED