Haopeng commited on
Commit
bf2e8fc
β€’
1 Parent(s): 840a987

Change examples and WER to Word Acc.

Browse files
app.py CHANGED
@@ -196,7 +196,8 @@ def calc_wer(audio_path, ref):
196
  hypothesis_transform=transformation,
197
  )
198
  # pdb.set_trace()
199
- return [trans, wer, token_wav_plot]
 
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 Error Rate", label="Word Error Rate (The lower the better)"),
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
- Fary_PAL_p326_len10_p326_013 SOME HAVE ACCEPTED IT AS A MIRACLE WITHOUT PHYSICAL EXPLANATION
2
- Fary_PAL_p326_len10_p326_020 MANY COMPLICATED IDEAS ABOUT THE RAINBOW HAVE BEEN FORMED
3
- Fary_PAL_p326_len10_p326_025 JIMMY RETURNED TO ABERDEEN, BUT SHE REMAINED WITH GEORGE
4
- Fary_PAL_p326_len10_p326_036 IT WAS MY SHORTEST AUDITION
5
- Fary_PAL_p326_len10_p326_040 THE POLICE BELIEVE THE MAN WAS NOT INJURED
6
- Fary_PAL_p326_len10_p326_043 I READ ABOUT IT IN THE NEWSPAPERS
7
- Fary_PAL_p326_len10_p326_044 WHAT DID THEY THINK OF HER VOICE
8
- Fary_PAL_p326_len10_p326_045 THEY SAY THEY FEEL DIFFERENT
9
- Fary_PAL_p326_len10_p326_048 WE WILL CONTINUE TO PRESSURE THE GOVERNMENT
10
- Fary_PAL_p326_len10_p326_049 HIS ART WAS NOT JUST ABOUT EMOTIONS
 
 
 
 
 
 
 
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