Update app.py
Browse files
app.py
CHANGED
@@ -43,13 +43,21 @@ def asr_transcript(input_file):
|
|
43 |
# transcription = correct_casing(transcription.lower())
|
44 |
return transcription
|
45 |
|
46 |
-
gr.Interface(
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
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.Interface(
|
56 |
+
# fn=asr_transcript,
|
57 |
+
# inputs=[
|
58 |
+
# gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
59 |
+
# gr.inputs.Audio(source="upload", type="filepath", optional=True),
|
60 |
+
# ],outputs="text",
|
61 |
+
# title="ASR using Wav2Vec2.0",
|
62 |
+
# description = "This application displays transcribed text for given audio input",
|
63 |
+
# theme="grass").launch()
|