Pijush2023 commited on
Commit
bba4a32
·
verified ·
1 Parent(s): 4fdfde0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -651,6 +651,13 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
651
 
652
  audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
653
  audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
 
 
 
 
 
 
 
654
  with gr.Column():
655
  weather_output = gr.HTML(value=fetch_local_weather())
656
  news_output = gr.HTML(value=fetch_local_news())
 
651
 
652
  audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
653
  audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
654
+
655
+
656
+ gr.Markdown("<h1 style='color: red;'>Map</h1>", elem_id="location-markdown")
657
+ location_output = gr.HTML()
658
+ bot_msg.then(show_map_if_details, [chatbot, choice], [location_output, location_output])
659
+
660
+
661
  with gr.Column():
662
  weather_output = gr.HTML(value=fetch_local_weather())
663
  news_output = gr.HTML(value=fetch_local_news())