Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,7 @@ def asr_transcript(input_file):
|
|
45 |
transcription = tokenizer.decode(predicted_ids)
|
46 |
#Correcting the letter casing
|
47 |
transcription = correct_casing(transcription.lower())
|
|
|
48 |
return transcription
|
49 |
|
50 |
################### Gradio Web APP ################################
|
@@ -52,7 +53,7 @@ title = "Hausa Automatic Speech Recognition"
|
|
52 |
|
53 |
examples = [["Sample/sample1.mp3"], ["Sample/sample2.mp3"], ["Sample/sample3.mp3"]]
|
54 |
|
55 |
-
Input = gr.Audio(source="microphone", type="filepath"
|
56 |
|
57 |
Output = gr.Textbox(label="Hausa Script")
|
58 |
|
|
|
45 |
transcription = tokenizer.decode(predicted_ids)
|
46 |
#Correcting the letter casing
|
47 |
transcription = correct_casing(transcription.lower())
|
48 |
+
|
49 |
return transcription
|
50 |
|
51 |
################### Gradio Web APP ################################
|
|
|
53 |
|
54 |
examples = [["Sample/sample1.mp3"], ["Sample/sample2.mp3"], ["Sample/sample3.mp3"]]
|
55 |
|
56 |
+
Input = gr.Audio(source="microphone", type="filepath")
|
57 |
|
58 |
Output = gr.Textbox(label="Hausa Script")
|
59 |
|