InesGahlouzi commited on
Commit
a7543d5
1 Parent(s): e60bd4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ nltk.download("punkt")
8
  #Loading the pre-trained model and the tokenizer
9
  model_name = "facebook/wav2vec2-base-960h"
10
  tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name)
11
- model = Wav2Vec2ForCTC.from_pretrained(model_name)
12
  def load_data(input_file):
13
 
14
  #reading the file
8
  #Loading the pre-trained model and the tokenizer
9
  model_name = "facebook/wav2vec2-base-960h"
10
  tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name)
11
+ model = Wav2Vec2Processor.from_pretrained(model_name)
12
  def load_data(input_file):
13
 
14
  #reading the file