sanchit-gandhi
commited on
Commit
·
e67d080
1
Parent(s):
0673498
high-level names
Browse files
app.py
CHANGED
@@ -153,8 +153,8 @@ def get_side_by_side_visualisation(idx):
|
|
153 |
# format the rows
|
154 |
table = [large_v2[1:-1], large_32_2[1:-1]]
|
155 |
# format the model names
|
156 |
-
table[0] = ["
|
157 |
-
table[1] = ["
|
158 |
return large_v2[0], table, large_v2[-1], large_32_2[-1]
|
159 |
|
160 |
|
@@ -176,7 +176,7 @@ if __name__ == "__main__":
|
|
176 |
"""
|
177 |
)
|
178 |
gr.Markdown(
|
179 |
-
"Analyse the transcriptions generated by the Whisper
|
180 |
"Analysis is performed on the overall level, where statistics are computed over the entire dev set, and also a per-sample level. "
|
181 |
"The transcriptions for both models are shown at the bottom of the demo. The text diff for each is computed "
|
182 |
"relative to the target transcriptions, where insertions are displayed in <span style='background-color:Lightgreen'>green</span>, and "
|
@@ -210,8 +210,8 @@ if __name__ == "__main__":
|
|
210 |
row_count=2,
|
211 |
)
|
212 |
with gr.Row():
|
213 |
-
gr.Markdown("**
|
214 |
-
gr.Markdown("**
|
215 |
with gr.Row():
|
216 |
text_out_v2 = gr.Markdown(label="Text difference")
|
217 |
text_out_32_2 = gr.Markdown(label="Text difference")
|
|
|
153 |
# format the rows
|
154 |
table = [large_v2[1:-1], large_32_2[1:-1]]
|
155 |
# format the model names
|
156 |
+
table[0] = ["Whisper", *table[0]]
|
157 |
+
table[1] = ["Distil-Whisper", *table[1]]
|
158 |
return large_v2[0], table, large_v2[-1], large_32_2[-1]
|
159 |
|
160 |
|
|
|
176 |
"""
|
177 |
)
|
178 |
gr.Markdown(
|
179 |
+
"Analyse the transcriptions generated by the Whisper and Distil-Whisper models on the TEDLIUM dev set. "
|
180 |
"Analysis is performed on the overall level, where statistics are computed over the entire dev set, and also a per-sample level. "
|
181 |
"The transcriptions for both models are shown at the bottom of the demo. The text diff for each is computed "
|
182 |
"relative to the target transcriptions, where insertions are displayed in <span style='background-color:Lightgreen'>green</span>, and "
|
|
|
210 |
row_count=2,
|
211 |
)
|
212 |
with gr.Row():
|
213 |
+
gr.Markdown("**Whisper text diff**")
|
214 |
+
gr.Markdown("**Distil-Whisper text diff**")
|
215 |
with gr.Row():
|
216 |
text_out_v2 = gr.Markdown(label="Text difference")
|
217 |
text_out_32_2 = gr.Markdown(label="Text difference")
|