wasertech commited on
Commit
aaa0af2
·
1 Parent(s): 11fc755

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ from transformers import Wav2Vec2Tokenizer, Wav2Vec2ForCTC
11
  nltk.download("punkt")
12
 
13
  #Loading the model and the tokenizer
14
- model_name = "facebook/wav2vec2-base-960h"
15
  tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name)
16
  model = Wav2Vec2ForCTC.from_pretrained(model_name)
17
 
@@ -63,5 +63,5 @@ gr.Interface(asr_transcript,
63
  outputs = gr.outputs.Textbox(label="Output Text"),
64
  title="ASR using Wav2Vec 2.0",
65
  description = "This application displays transcribed text for given audio input",
66
- examples = [["Test_File1.wav"], ["Test_File2.wav"], ["Test_File3.wav"]], theme="grass").launch()
67
 
 
11
  nltk.download("punkt")
12
 
13
  #Loading the model and the tokenizer
14
+ model_name = "wasertech/wav2vec2-cv-fr-9"
15
  tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name)
16
  model = Wav2Vec2ForCTC.from_pretrained(model_name)
17
 
 
63
  outputs = gr.outputs.Textbox(label="Output Text"),
64
  title="ASR using Wav2Vec 2.0",
65
  description = "This application displays transcribed text for given audio input",
66
+ examples = [["wav/1.wav"], ["wav/2.wav"], ["wav/3.wav"]], theme="grass").launch()
67