Spaces:
Runtime error
Runtime error
InesGahlouzi
commited on
Commit
•
e60bd4a
1
Parent(s):
053f8de
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def asr_transcript(input_file):
|
|
38 |
#Correcting the letter casing
|
39 |
transcription = correct_casing(transcription.lower())
|
40 |
return transcription
|
41 |
-
|
42 |
inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Speaker"),
|
43 |
outputs = gr.outputs.Textbox(label="Output Text"),
|
44 |
title="ASR using Wav2Vec 2.0",
|
38 |
#Correcting the letter casing
|
39 |
transcription = correct_casing(transcription.lower())
|
40 |
return transcription
|
41 |
+
gr.Interface(asr_transcript,
|
42 |
inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Speaker"),
|
43 |
outputs = gr.outputs.Textbox(label="Output Text"),
|
44 |
title="ASR using Wav2Vec 2.0",
|