Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,4 +47,15 @@ def asr_transcript(input_file):
|
|
47 |
transcription = correct_casing(transcription.lower())
|
48 |
return transcription
|
49 |
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
transcription = correct_casing(transcription.lower())
|
48 |
return transcription
|
49 |
|
50 |
+
################### Gradio Web APP ################################
|
51 |
+
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 |
+
|
59 |
+
description = "This application displays transcribed text for given audio input"
|
60 |
+
|
61 |
+
gr.Interface(asr_transcript, inputs = Input, label="Please Record Your Voice", outputs = Output, title = title, flagging_options=["incorrect", "worst", "ambiguous"], description= description, examples=examples).launch()
|