Ahsen Khaliq commited on
Commit
b31525e
1 Parent(s): 99e31bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -10,6 +10,9 @@ import librosa.display
10
  import matplotlib.pyplot as plt
11
  import gradio as gr
12
 
 
 
 
13
 
14
  d = ModelDownloader()
15
  speech2text = Speech2Text(
@@ -26,11 +29,6 @@ speech2text = Speech2Text(
26
  def text_normalizer(text):
27
  text = text.upper()
28
  return text.translate(str.maketrans('', '', string.punctuation))
29
-
30
- lang = 'multilingual'
31
- fs = 16000
32
- tag = 'ftshijt/open_li52_asr_train_asr_raw_bpe7000_valid.acc.ave_10best'
33
-
34
 
35
  def inference(audio):
36
  speech, rate = soundfile.read(audio.name)
 
10
  import matplotlib.pyplot as plt
11
  import gradio as gr
12
 
13
+ lang = 'multilingual'
14
+ fs = 16000
15
+ tag = 'ftshijt/open_li52_asr_train_asr_raw_bpe7000_valid.acc.ave_10best'
16
 
17
  d = ModelDownloader()
18
  speech2text = Speech2Text(
 
29
  def text_normalizer(text):
30
  text = text.upper()
31
  return text.translate(str.maketrans('', '', string.punctuation))
 
 
 
 
 
32
 
33
  def inference(audio):
34
  speech, rate = soundfile.read(audio.name)