Spaces:
Sleeping
Sleeping
juliuserictuliao
commited on
Update app.py
Browse filesedit add gradio
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 |
|