NeerAbhy commited on
Commit
aa308cd
·
verified ·
1 Parent(s): fa7a6ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ import torchaudio.transforms as T
9
  import os
10
  from pathlib import Path
11
 
12
- repo_id = "NeerAbhy/Speech_recognotion_model"
13
  class TextTransform:
14
  def __init__(self):
15
  char_map_str = """
@@ -185,7 +185,7 @@ model = SpeechRecognitionModel(
185
  hparams['n_cnn_layers'], hparams['n_rnn_layers'], hparams['rnn_dim'],
186
  hparams['n_class'], hparams['n_feats'], hparams['stride'], hparams['dropout']
187
  )
188
- #model = gr.load("NeerAbhy/Speech_recognotion_model", src = 'models')
189
  model = from_pretrained_fastai(repo_id)
190
  def prediction(audio):
191
  valid_audio_transforms = torchaudio.transforms.MelSpectrogram(sample_rate = 16000)
 
9
  import os
10
  from pathlib import Path
11
 
12
+ repo_id = "NeerAbhy/Speech_recognotion_model/Speech_recognition_model_2.pth"
13
  class TextTransform:
14
  def __init__(self):
15
  char_map_str = """
 
185
  hparams['n_cnn_layers'], hparams['n_rnn_layers'], hparams['rnn_dim'],
186
  hparams['n_class'], hparams['n_feats'], hparams['stride'], hparams['dropout']
187
  )
188
+ #model = gr.load("NeerAbhy/Speech_recognotion_model", src = 'models')Speech_recognition_model_2.pth
189
  model = from_pretrained_fastai(repo_id)
190
  def prediction(audio):
191
  valid_audio_transforms = torchaudio.transforms.MelSpectrogram(sample_rate = 16000)