Spaces:
Sleeping
Sleeping
Mike Frantz
commited on
Commit
·
d1420d4
1
Parent(s):
d6b3575
fix error in app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,6 @@ from transformers import pipeline
|
|
4 |
from tokenizers.pre_tokenizers import Whitespace
|
5 |
from tokenizers.normalizers import BertNormalizer
|
6 |
|
7 |
-
processor = AutoProcessor.from_pretrained("facebook/wav2vec2-base-960h")
|
8 |
-
model = AutoModelForCTC.from_pretrained("facebook/wav2vec2-base-960h")
|
9 |
-
|
10 |
audio_input = gr.inputs.Audio(source='microphone', label='Read the passage', type="filepath")
|
11 |
text_input = gr.inputs.Textbox(label='Sample passage')
|
12 |
text_output = gr.outputs.Textbox(label='Output')
|
|
|
4 |
from tokenizers.pre_tokenizers import Whitespace
|
5 |
from tokenizers.normalizers import BertNormalizer
|
6 |
|
|
|
|
|
|
|
7 |
audio_input = gr.inputs.Audio(source='microphone', label='Read the passage', type="filepath")
|
8 |
text_input = gr.inputs.Textbox(label='Sample passage')
|
9 |
text_output = gr.outputs.Textbox(label='Output')
|