juliuserictuliao commited on
Commit
24b2ad1
·
verified ·
1 Parent(s): 7bc4184

Update app.py

Browse files

edit add gradio

Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -43,5 +43,10 @@ def asr_transcript(input_file):
43
  transcription = correct_casing(transcription.lower())
44
  return transcription
45
 
46
-
 
 
 
 
 
47
 
 
43
  transcription = correct_casing(transcription.lower())
44
  return transcription
45
 
46
+ gr.Interface(asr_transcript,
47
+ inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Speaker"),
48
+ outputs = gr.outputs.Textbox(label="Output Text"),
49
+ title="ASR using Wav2Vec 2.0",
50
+ description = "This application displays transcribed text for given audio input",
51
+ examples = [["Test_File1.wav"], ["Test_File2.wav"], ["Test_File3.wav"]], theme="grass").launch()
52