Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -666,7 +666,7 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
666 |
|
667 |
gr.Markdown("<h1 style='color: red;'>Talk to RADAR</h1>", elem_id="voice-markdown")
|
668 |
|
669 |
-
chat_input = gr.Textbox(show_copy_button=True, interactive=True, show_label=False, label="ASK Radar !!!"
|
670 |
chat_msg = chat_input.submit(add_message, [chatbot, chat_input], [chatbot, chat_input], api_name="voice_query")
|
671 |
tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta", "Gamma"], value="Alpha")
|
672 |
retriver_button = gr.Button("Retriever")
|
@@ -701,5 +701,8 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
701 |
refresh_button.click(fn=update_images, inputs=None, outputs=[image_output_1, image_output_2, image_output_3])
|
702 |
location_output = gr.HTML()
|
703 |
bot_msg.then(show_map_if_details, [chatbot, choice], [location_output, location_output], api_name="map_finder")
|
|
|
|
|
|
|
704 |
demo.queue()
|
705 |
demo.launch(share=True)
|
|
|
666 |
|
667 |
gr.Markdown("<h1 style='color: red;'>Talk to RADAR</h1>", elem_id="voice-markdown")
|
668 |
|
669 |
+
chat_input = gr.Textbox(show_copy_button=True, interactive=True, show_label=False, label="ASK Radar !!!")
|
670 |
chat_msg = chat_input.submit(add_message, [chatbot, chat_input], [chatbot, chat_input], api_name="voice_query")
|
671 |
tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta", "Gamma"], value="Alpha")
|
672 |
retriver_button = gr.Button("Retriever")
|
|
|
701 |
refresh_button.click(fn=update_images, inputs=None, outputs=[image_output_1, image_output_2, image_output_3])
|
702 |
location_output = gr.HTML()
|
703 |
bot_msg.then(show_map_if_details, [chatbot, choice], [location_output, location_output], api_name="map_finder")
|
704 |
+
|
705 |
+
demo.load(Javascript("document.addEventListener('keydown', function(event) { if (event.key === 'Enter') { event.preventDefault(); } });"))
|
706 |
+
|
707 |
demo.queue()
|
708 |
demo.launch(share=True)
|