Spaces:
Runtime error
Runtime error
Change examples and WER to Word Acc.
Browse files- app.py +4 -2
- data/samples/1_EL1.wav +0 -0
- data/samples/2_EL2.wav +0 -0
- data/samples/3_Healthy1.wav +0 -0
- data/samples/4_Healthy2.wav +0 -0
- data/samples/5_Laronix1.wav +0 -0
- data/samples/6_Laronix2.wav +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_013.wav β 7_laronix_PAL_01.wav} +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_020.wav β 7_laronix_PAL_02.wav} +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_025.wav β 7_laronix_PAL_03.wav} +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_036.wav β 7_laronix_PAL_04.wav} +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_040.wav β 7_laronix_PAL_05.wav} +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_043.wav β 7_laronix_PAL_06.wav} +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_044.wav β 7_laronix_PAL_07.wav} +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_045.wav β 7_laronix_PAL_08.wav} +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_048.wav β 7_laronix_PAL_09.wav} +0 -0
- data/samples/{Fary_PAL_p326_len10_p326_049.wav β 7_laronix_PAL_10.wav} +0 -0
- data/samples/John_p326_020.wav +0 -0
- data/samples/p326_020.wav +0 -0
- data/samples/ref.txt +16 -10
- local/__pycache__/vis.cpython-39.pyc +0 -0
app.py
CHANGED
@@ -196,7 +196,8 @@ def calc_wer(audio_path, ref):
|
|
196 |
hypothesis_transform=transformation,
|
197 |
)
|
198 |
# pdb.set_trace()
|
199 |
-
|
|
|
200 |
# calc_wer(examples[1][0], examples[1][1])
|
201 |
# pdb.set_trace()
|
202 |
iface = gr.Interface(
|
@@ -211,11 +212,12 @@ iface = gr.Interface(
|
|
211 |
],
|
212 |
outputs=[
|
213 |
gr.Textbox(placeholder="Hypothesis", label="Recognition by AI"),
|
214 |
-
gr.Textbox(placeholder="Word
|
215 |
gr.Plot(label="waveform")
|
216 |
],
|
217 |
description=description,
|
218 |
examples=examples,
|
|
|
219 |
css=".body {background-color: green}",
|
220 |
)
|
221 |
|
|
|
196 |
hypothesis_transform=transformation,
|
197 |
)
|
198 |
# pdb.set_trace()
|
199 |
+
word_acc = 1.0 - float(wer)
|
200 |
+
return [trans, word_acc, token_wav_plot]
|
201 |
# calc_wer(examples[1][0], examples[1][1])
|
202 |
# pdb.set_trace()
|
203 |
iface = gr.Interface(
|
|
|
212 |
],
|
213 |
outputs=[
|
214 |
gr.Textbox(placeholder="Hypothesis", label="Recognition by AI"),
|
215 |
+
gr.Textbox(placeholder="Word Accuracy", label="Word Accuracy (The Higher the better)"),
|
216 |
gr.Plot(label="waveform")
|
217 |
],
|
218 |
description=description,
|
219 |
examples=examples,
|
220 |
+
examples_per_page=20,
|
221 |
css=".body {background-color: green}",
|
222 |
)
|
223 |
|
data/samples/1_EL1.wav
ADDED
Binary file (483 kB). View file
|
|
data/samples/2_EL2.wav
ADDED
Binary file (397 kB). View file
|
|
data/samples/3_Healthy1.wav
ADDED
Binary file (117 kB). View file
|
|
data/samples/4_Healthy2.wav
ADDED
Binary file (134 kB). View file
|
|
data/samples/5_Laronix1.wav
ADDED
Binary file (471 kB). View file
|
|
data/samples/6_Laronix2.wav
ADDED
Binary file (458 kB). View file
|
|
data/samples/{Fary_PAL_p326_len10_p326_013.wav β 7_laronix_PAL_01.wav}
RENAMED
File without changes
|
data/samples/{Fary_PAL_p326_len10_p326_020.wav β 7_laronix_PAL_02.wav}
RENAMED
File without changes
|
data/samples/{Fary_PAL_p326_len10_p326_025.wav β 7_laronix_PAL_03.wav}
RENAMED
File without changes
|
data/samples/{Fary_PAL_p326_len10_p326_036.wav β 7_laronix_PAL_04.wav}
RENAMED
File without changes
|
data/samples/{Fary_PAL_p326_len10_p326_040.wav β 7_laronix_PAL_05.wav}
RENAMED
File without changes
|
data/samples/{Fary_PAL_p326_len10_p326_043.wav β 7_laronix_PAL_06.wav}
RENAMED
File without changes
|
data/samples/{Fary_PAL_p326_len10_p326_044.wav β 7_laronix_PAL_07.wav}
RENAMED
File without changes
|
data/samples/{Fary_PAL_p326_len10_p326_045.wav β 7_laronix_PAL_08.wav}
RENAMED
File without changes
|
data/samples/{Fary_PAL_p326_len10_p326_048.wav β 7_laronix_PAL_09.wav}
RENAMED
File without changes
|
data/samples/{Fary_PAL_p326_len10_p326_049.wav β 7_laronix_PAL_10.wav}
RENAMED
File without changes
|
data/samples/John_p326_020.wav
DELETED
Binary file (339 kB)
|
|
data/samples/p326_020.wav
DELETED
Binary file (449 kB)
|
|
data/samples/ref.txt
CHANGED
@@ -1,10 +1,16 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
1_EL1 HE WOULD ANSWER IN A SOFT VOICE I DON'T KNOW
|
2 |
+
2_EL2 ONE NIGHT THE RATS HEARD A LOUD NOISE
|
3 |
+
3_Healthy1 HE WOULD ANSWER IN A SOFT VOICE I DON'T KNOW
|
4 |
+
4_Healthy2 ONE NIGHT THE RATS HEARD A LOUD NOISE
|
5 |
+
5_Laronix1 HE WOULD ANSWER IN A SOFT VOICE I DON'T KNOW
|
6 |
+
6_laronix2 ONE NIGHT THE RATS HEARD A LOUD NOISE
|
7 |
+
7_laronix_PAL_01 SOME HAVE ACCEPTED IT AS A MIRACLE WITHOUT PHYSICAL EXPLANATION
|
8 |
+
7_laronix_PAL_02 MANY COMPLICATED IDEAS ABOUT THE RAINBOW HAVE BEEN FORMED
|
9 |
+
7_laronix_PAL_03 JIMMY RETURNED TO ABERDEEN, BUT SHE REMAINED WITH GEORGE
|
10 |
+
7_laronix_PAL_04 IT WAS MY SHORTEST AUDITION
|
11 |
+
7_laronix_PAL_05 THE POLICE BELIEVE THE MAN WAS NOT INJURED
|
12 |
+
7_laronix_PAL_06 I READ ABOUT IT IN THE NEWSPAPERS
|
13 |
+
7_laronix_PAL_07 WHAT DID THEY THINK OF HER VOICE
|
14 |
+
7_laronix_PAL_08 THEY SAY THEY FEEL DIFFERENT
|
15 |
+
7_laronix_PAL_09 WE WILL CONTINUE TO PRESSURE THE GOVERNMENT
|
16 |
+
7_laronix_PAL_10 HIS ART WAS NOT JUST ABOUT EMOTIONS
|
local/__pycache__/vis.cpython-39.pyc
CHANGED
Binary files a/local/__pycache__/vis.cpython-39.pyc and b/local/__pycache__/vis.cpython-39.pyc differ
|
|