Pijush2023 commited on
Commit
a6a5eec
·
verified ·
1 Parent(s): 196051a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -576,6 +576,10 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
576
  clear_button.click(fn=clear_textbox, inputs=None, outputs=chat_input)
577
  # audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
578
  # audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
 
 
 
 
579
 
580
  with gr.Column():
581
  weather_output = gr.HTML(value=fetch_local_weather())
 
576
  clear_button.click(fn=clear_textbox, inputs=None, outputs=chat_input)
577
  # audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
578
  # audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
579
+
580
+ gr.Markdown("<h1>Talk to RADAR</h1>", elem_id="voice-markdown")
581
+ audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
582
+ audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
583
 
584
  with gr.Column():
585
  weather_output = gr.HTML(value=fetch_local_weather())