dragonSwing commited on
Commit
a21cd0c
·
1 Parent(s): fdedded

Update input and output

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -80,10 +80,10 @@ def speech_recognize(file_upload, file_mic):
80
 
81
 
82
  inputs = [
83
- gr.inputs.Audio(source="upload", type="filepath", optional=True),
84
- gr.inputs.Audio(source="microphone", type="filepath", optional=True),
85
  ]
86
- outputs = gr.outputs.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>"
 
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>"