Update app.py
Browse files
app.py
CHANGED
|
@@ -44,20 +44,16 @@ def asr_transcript(input_file):
|
|
| 44 |
return transcription
|
| 45 |
|
| 46 |
gr.Interface(asr_transcript,
|
| 47 |
-
inputs =
|
| 48 |
-
gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Speaker")],
|
| 49 |
outputs = gr.outputs.Textbox(label="Output Text"),
|
| 50 |
title="ASR using Wav2Vec2.0",
|
| 51 |
description = "This application displays transcribed text for given audio input",
|
| 52 |
theme="grass").launch()
|
| 53 |
|
| 54 |
-
|
| 55 |
-
# gr.
|
| 56 |
-
#
|
| 57 |
-
#
|
| 58 |
-
#
|
| 59 |
-
#
|
| 60 |
-
#
|
| 61 |
-
# title="ASR using Wav2Vec2.0",
|
| 62 |
-
# description = "This application displays transcribed text for given audio input",
|
| 63 |
-
# theme="grass").launch()
|
|
|
|
| 44 |
return transcription
|
| 45 |
|
| 46 |
gr.Interface(asr_transcript,
|
| 47 |
+
inputs = gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Upload"),
|
|
|
|
| 48 |
outputs = gr.outputs.Textbox(label="Output Text"),
|
| 49 |
title="ASR using Wav2Vec2.0",
|
| 50 |
description = "This application displays transcribed text for given audio input",
|
| 51 |
theme="grass").launch()
|
| 52 |
|
| 53 |
+
# gr.Interface(asr_transcript,
|
| 54 |
+
# inputs = [gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Speaker"),
|
| 55 |
+
# gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Speaker")],
|
| 56 |
+
# outputs = gr.outputs.Textbox(label="Output Text"),
|
| 57 |
+
# title="ASR using Wav2Vec2.0",
|
| 58 |
+
# description = "This application displays transcribed text for given audio input",
|
| 59 |
+
# theme="grass").launch()
|
|
|
|
|
|
|
|
|