Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = "
|
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 = [["
|
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 |
|