Ahsen Khaliq commited on
Commit
2675f3f
1 Parent(s): 4759903

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -33,7 +33,6 @@ def text_normalizer(text):
33
 
34
  def inference(audio):
35
  speech, rate = soundfile.read(audio.name)
36
- assert rate == fs, "mismatch in sampling rate"
37
  nbests = speech2text(speech)
38
  text, *_ = nbests[0]
39
  return f"ASR hypothesis: {text_normalizer(text)}"
 
33
 
34
  def inference(audio):
35
  speech, rate = soundfile.read(audio.name)
 
36
  nbests = speech2text(speech)
37
  text, *_ = nbests[0]
38
  return f"ASR hypothesis: {text_normalizer(text)}"