AuryTaine commited on
Commit
43c3694
1 Parent(s): 26087bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -30,5 +30,12 @@ def load_data(input_file):
30
  transcription = tokenizer.decode(predicted_ids[0])
31
  transcription = correct_casing(transcription.lower())
32
  return transcription
33
-
 
 
 
 
 
 
 
34
 
 
30
  transcription = tokenizer.decode(predicted_ids[0])
31
  transcription = correct_casing(transcription.lower())
32
  return transcription
33
+
34
+
35
+ gr.Interface(asr_transcript,
36
+ inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Speaker"),
37
+ outputs = gr.outputs.Textbox(label="Output Text"),
38
+ title="ASR using Wav2Vec 2.0",
39
+ description = "This application displays transcribed text for given audio input",
40
+ examples = [["Test_File1.wav"], ["Test_File2.wav"], ["Test_File3.wav"]], theme="grass").launch()
41