Harveenchadha commited on
Commit
c45c6ec
1 Parent(s): e1771c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -39,6 +39,12 @@ def convert_file(wav_file):
39
  speech, _ = sf.read(filename + "16k.wav")
40
  return speech
41
 
 
 
 
 
 
 
42
  def parse_transcription(wav_file):
43
  speech = convert_file(wav_file)
44
 
 
39
  speech, _ = sf.read(filename + "16k.wav")
40
  return speech
41
 
42
+ def parse(wav_file, applyLM):
43
+ if applyLM:
44
+ return parse_transcription_with_lm(wav_file)
45
+ else:
46
+ return parse_transcription(wav_file)
47
+
48
  def parse_transcription(wav_file):
49
  speech = convert_file(wav_file)
50