Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ from transformers import pipeline
|
|
| 77 |
p=pipeline("automatic-speech-recognition", model="facebook/wav2vec2-base-960h")
|
| 78 |
|
| 79 |
def asr_transcript_long(input_file):
|
| 80 |
-
return p(input_file, chunk_length_s=10, stride_length_s=(2, 2))['text']
|
| 81 |
|
| 82 |
gr.Interface(asr_transcript_long,
|
| 83 |
#inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Please record your voice"),
|
|
|
|
| 77 |
p=pipeline("automatic-speech-recognition", model="facebook/wav2vec2-base-960h")
|
| 78 |
|
| 79 |
def asr_transcript_long(input_file):
|
| 80 |
+
return p(input_file, chunk_length_s=10, stride_length_s=(2, 2))['text'].lower()
|
| 81 |
|
| 82 |
gr.Interface(asr_transcript_long,
|
| 83 |
#inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Please record your voice"),
|