Update app.py
Browse files
app.py
CHANGED
@@ -75,20 +75,24 @@ with bl:
|
|
75 |
with gr.Tabs():
|
76 |
with gr.TabItem("Icelandic"):
|
77 |
with gr.Row():
|
78 |
-
audio_file = gr.Audio(
|
79 |
with gr.Column():
|
80 |
-
whole_output = gr.Textbox(label="whole-file recognition")
|
81 |
-
chunk_output = gr.Textbox(label="recognition with chunking")
|
|
|
82 |
text_button = gr.Button("Recognise Icelandic")
|
83 |
-
text_button.click(recis, inputs=audio_file, outputs=[whole_output,chunk_output])
|
|
|
|
|
84 |
with gr.TabItem("Faroese"):
|
85 |
with gr.Row():
|
86 |
-
audio_file = gr.Audio(
|
87 |
with gr.Column():
|
88 |
-
whole_output = gr.Textbox(label="whole-file recognition")
|
89 |
-
chunk_output = gr.Textbox(label="recognition with chunking")
|
90 |
text_button = gr.Button("Recognise Faroese")
|
91 |
-
text_button.click(recfo, inputs=audio_file, outputs=[whole_output,chunk_output])
|
|
|
92 |
|
93 |
bl.launch()
|
94 |
|
|
|
75 |
with gr.Tabs():
|
76 |
with gr.TabItem("Icelandic"):
|
77 |
with gr.Row():
|
78 |
+
audio_file = gr.Audio(sources=["upload", "microphone"],type="filepath")
|
79 |
with gr.Column():
|
80 |
+
#whole_output = gr.Textbox(label="whole-file recognition")
|
81 |
+
chunk_output = gr.Textbox(label="Wav2Vec2 recognition")# with chunking")
|
82 |
+
whisper_output = gr.Textbox(label="Whisper recognition")
|
83 |
text_button = gr.Button("Recognise Icelandic")
|
84 |
+
#text_button.click(recis, inputs=audio_file, outputs=[whole_output,chunk_output])
|
85 |
+
text_button.click(recis, inputs=audio_file, outputs=[chunk_output])
|
86 |
+
|
87 |
with gr.TabItem("Faroese"):
|
88 |
with gr.Row():
|
89 |
+
audio_file = gr.Audio(sources=["upload", "microphone"],type="filepath")
|
90 |
with gr.Column():
|
91 |
+
#whole_output = gr.Textbox(label="whole-file recognition")
|
92 |
+
chunk_output = gr.Textbox(label="Wav2Vec2 recognition")# with chunking")
|
93 |
text_button = gr.Button("Recognise Faroese")
|
94 |
+
#text_button.click(recfo, inputs=audio_file, outputs=[whole_output,chunk_output])
|
95 |
+
text_button.click(recfo, inputs=audio_file, outputs=[chunk_output])
|
96 |
|
97 |
bl.launch()
|
98 |
|