Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -578,8 +578,8 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
578 |
image_output_3 = gr.Image(value=generate_image(hardcoded_prompt_3), width=300, height=300)
|
579 |
|
580 |
# def setup_ui():
|
581 |
-
|
582 |
-
|
583 |
with gr.Column(scale=1):
|
584 |
gr.Markdown("<h1>Select Style</h1>", elem_id="prompt-markdown")
|
585 |
choice = gr.Radio(label="Select Style", choices=["Details", "Conversational"], value="Conversational")
|
@@ -599,13 +599,13 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
599 |
audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
|
600 |
audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
|
601 |
|
602 |
-
|
603 |
with gr.Column(scale=1):
|
604 |
gr.Markdown("<h1>Map</h1>", elem_id="location-markdown")
|
605 |
location_output = gr.HTML()
|
606 |
bot_msg.then(show_map_if_details, [chatbot, choice], [location_output, location_output])
|
607 |
|
608 |
-
|
609 |
with gr.Column(scale=1):
|
610 |
gr.Markdown("<h1>Suggested Events</h1>", elem_id="events-markdown")
|
611 |
events_output = gr.HTML(value=fetch_local_events())
|
|
|
578 |
image_output_3 = gr.Image(value=generate_image(hardcoded_prompt_3), width=300, height=300)
|
579 |
|
580 |
# def setup_ui():
|
581 |
+
state = gr.State()
|
582 |
+
with gr.Row():
|
583 |
with gr.Column(scale=1):
|
584 |
gr.Markdown("<h1>Select Style</h1>", elem_id="prompt-markdown")
|
585 |
choice = gr.Radio(label="Select Style", choices=["Details", "Conversational"], value="Conversational")
|
|
|
599 |
audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
|
600 |
audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="SAMLOne_real_time")
|
601 |
|
602 |
+
with gr.Row():
|
603 |
with gr.Column(scale=1):
|
604 |
gr.Markdown("<h1>Map</h1>", elem_id="location-markdown")
|
605 |
location_output = gr.HTML()
|
606 |
bot_msg.then(show_map_if_details, [chatbot, choice], [location_output, location_output])
|
607 |
|
608 |
+
with gr.Row():
|
609 |
with gr.Column(scale=1):
|
610 |
gr.Markdown("<h1>Suggested Events</h1>", elem_id="events-markdown")
|
611 |
events_output = gr.HTML(value=fetch_local_events())
|