Spaces:
Runtime error
Runtime error
Commit
·
a21cd0c
1
Parent(s):
fdedded
Update input and output
Browse files
app.py
CHANGED
@@ -80,10 +80,10 @@ def speech_recognize(file_upload, file_mic):
|
|
80 |
|
81 |
|
82 |
inputs = [
|
83 |
-
gr.
|
84 |
-
gr.
|
85 |
]
|
86 |
-
outputs = gr.
|
87 |
title = "wav2vec2-base-vietnamese-270h"
|
88 |
description = "Gradio demo for a wav2vec2 base vietnamese speech recognition. To use it, simply upload your audio, click one of the examples to load them, or record from your own microphone. Read more at the links below. Currently supports 16_000hz audio files"
|
89 |
article = "<p style='text-align: center'><a href='https://huggingface.co/dragonSwing/wav2vec2-base-vn-270h' target='_blank'>Pretrained model</a></p>"
|
|
|
80 |
|
81 |
|
82 |
inputs = [
|
83 |
+
gr.Audio(source="upload", type="filepath", optional=True),
|
84 |
+
gr.Audio(source="microphone", type="filepath", optional=True),
|
85 |
]
|
86 |
+
outputs = gr.Textbox(label="Output Text")
|
87 |
title = "wav2vec2-base-vietnamese-270h"
|
88 |
description = "Gradio demo for a wav2vec2 base vietnamese speech recognition. To use it, simply upload your audio, click one of the examples to load them, or record from your own microphone. Read more at the links below. Currently supports 16_000hz audio files"
|
89 |
article = "<p style='text-align: center'><a href='https://huggingface.co/dragonSwing/wav2vec2-base-vn-270h' target='_blank'>Pretrained model</a></p>"
|