Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -669,6 +669,7 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
669 |
chat_msg = chat_input.submit(add_message, [chatbot, chat_input], [chatbot, chat_input], api_name="voice_query")
|
670 |
tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta", "Gamma"], value="Alpha")
|
671 |
retriver_button = gr.Button("Retriever")
|
|
|
672 |
location_output = gr.HTML()
|
673 |
retriver_button.click(fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input]).then(
|
674 |
fn=bot, inputs=[chatbot, choice, tts_choice, state], outputs=[chatbot, gr.Audio(interactive=False, autoplay=True)], api_name="Ask_Retriever").then(
|
@@ -682,9 +683,6 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
682 |
|
683 |
audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
|
684 |
audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="voice_query_to_text")
|
685 |
-
|
686 |
-
gr.Markdown("<h1 style='color: red;'>Radar Map</h1>", elem_id="Map-Radar")
|
687 |
-
location_output = gr.HTML() # Initialize location_output here
|
688 |
|
689 |
|
690 |
with gr.Column():
|
|
|
669 |
chat_msg = chat_input.submit(add_message, [chatbot, chat_input], [chatbot, chat_input], api_name="voice_query")
|
670 |
tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta", "Gamma"], value="Alpha")
|
671 |
retriver_button = gr.Button("Retriever")
|
672 |
+
gr.Markdown("<h1 style='color: red;'>Radar Map</h1>", elem_id="Map-Radar")
|
673 |
location_output = gr.HTML()
|
674 |
retriver_button.click(fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input]).then(
|
675 |
fn=bot, inputs=[chatbot, choice, tts_choice, state], outputs=[chatbot, gr.Audio(interactive=False, autoplay=True)], api_name="Ask_Retriever").then(
|
|
|
683 |
|
684 |
audio_input = gr.Audio(sources=["microphone"], streaming=True, type='numpy')
|
685 |
audio_input.stream(transcribe_function, inputs=[state, audio_input], outputs=[state, chat_input], api_name="voice_query_to_text")
|
|
|
|
|
|
|
686 |
|
687 |
|
688 |
with gr.Column():
|