ysharma HF staff commited on
Commit
2526304
1 Parent(s): 03a69e5

update audio button

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -166,8 +166,8 @@ with demo:
166
  """Model pipeline consisting of - <br>- [**Whisper**](https://github.com/openai/whisper)for Speech-to-text, <br>- [**Bloom**](https://huggingface.co/bigscience/bloom) for Text-generation, and <br>- [**CoquiTTS**](https://huggingface.co/coqui) for Text-To-Speech. <br><br> Front end is built using [**Gradio Block API**](https://gradio.app/docs/#blocks).<br>All three models are Multilingual, however, there are only these three overlapping languages among them - <u>Spanish (es), French(fr), and English(en). Hence it would be suggested to test this ML-App using these three languages to get the best results</u>. If an English voice input is given then both the textbox on the left-hand side would show the same transcripts. However, if the input is either in _Spanish_ or _French_, then the first textbox would show the language transcript, while the next one would show its English translations.<br>If you want to reuse the App, simply click on the small cross button in the top right corner of your voice record panel, and then press record again!
167
  """)
168
  with gr.Row():
169
- with gr.Column():
170
- in_audio = gr.Audio(source="microphone", type="filepath", label='Record your voice here in English, Spanish or French for best results-') #type='filepath'
171
  b1 = gr.Button("AI response pipeline (Whisper - Bloom - Coqui pipeline)")
172
  out_transcript = gr.Textbox(label= 'English/Spanish/French Transcript of your Audio using OpenAI Whisper')
173
  out_translation_en = gr.Textbox(label= 'English Translation of audio using OpenAI Whisper')
 
166
  """Model pipeline consisting of - <br>- [**Whisper**](https://github.com/openai/whisper)for Speech-to-text, <br>- [**Bloom**](https://huggingface.co/bigscience/bloom) for Text-generation, and <br>- [**CoquiTTS**](https://huggingface.co/coqui) for Text-To-Speech. <br><br> Front end is built using [**Gradio Block API**](https://gradio.app/docs/#blocks).<br>All three models are Multilingual, however, there are only these three overlapping languages among them - <u>Spanish (es), French(fr), and English(en). Hence it would be suggested to test this ML-App using these three languages to get the best results</u>. If an English voice input is given then both the textbox on the left-hand side would show the same transcripts. However, if the input is either in _Spanish_ or _French_, then the first textbox would show the language transcript, while the next one would show its English translations.<br>If you want to reuse the App, simply click on the small cross button in the top right corner of your voice record panel, and then press record again!
167
  """)
168
  with gr.Row():
169
+ with gr.Column():
170
+ in_audio = gr.Audio(source="microphone", type="filepath", streaming=True, label='Record your voice here in English, Spanish or French for best results-') #type='filepath'
171
  b1 = gr.Button("AI response pipeline (Whisper - Bloom - Coqui pipeline)")
172
  out_transcript = gr.Textbox(label= 'English/Spanish/French Transcript of your Audio using OpenAI Whisper')
173
  out_translation_en = gr.Textbox(label= 'English Translation of audio using OpenAI Whisper')