Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -581,12 +581,18 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
| 581 |
gr.Markdown("<h1>Talk to RADAR</h1>", elem_id="voice-markdown")
|
| 582 |
audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
|
| 583 |
audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 584 |
|
| 585 |
with gr.Column():
|
| 586 |
weather_output = gr.HTML(value=fetch_local_weather())
|
| 587 |
news_output = gr.HTML(value=fetch_local_news())
|
| 588 |
#gr.Markdown("<h1>Suggested Events</h1>", elem_id="events-markdown")
|
| 589 |
news_output = gr.HTML(value=fetch_local_events())
|
|
|
|
| 590 |
with gr.Column():
|
| 591 |
gr.Markdown("<h1>Sponsored</h1>", elem_id="image-markdown")
|
| 592 |
image_output_1 = gr.Image(value=generate_image(hardcoded_prompt_1), width=400, height=400)
|
|
|
|
| 581 |
gr.Markdown("<h1>Talk to RADAR</h1>", elem_id="voice-markdown")
|
| 582 |
audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
|
| 583 |
audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
|
| 584 |
+
|
| 585 |
+
|
| 586 |
+
gr.Markdown("<h1>Map</h1>", elem_id="location-markdown")
|
| 587 |
+
location_output = gr.HTML()
|
| 588 |
+
bot_msg.then(show_map_if_details, [chatbot, choice], [location_output, location_output])
|
| 589 |
|
| 590 |
with gr.Column():
|
| 591 |
weather_output = gr.HTML(value=fetch_local_weather())
|
| 592 |
news_output = gr.HTML(value=fetch_local_news())
|
| 593 |
#gr.Markdown("<h1>Suggested Events</h1>", elem_id="events-markdown")
|
| 594 |
news_output = gr.HTML(value=fetch_local_events())
|
| 595 |
+
|
| 596 |
with gr.Column():
|
| 597 |
gr.Markdown("<h1>Sponsored</h1>", elem_id="image-markdown")
|
| 598 |
image_output_1 = gr.Image(value=generate_image(hardcoded_prompt_1), width=400, height=400)
|