Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -670,8 +670,8 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
670 |
retriver_button.click(fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input]).then(
|
671 |
fn=bot, inputs=[chatbot, choice, tts_choice], outputs=[chatbot, gr.Audio(interactive=False, autoplay=True)],api_name="Ask_Retriever")
|
672 |
|
673 |
-
voice_response_button = gr.Button("Voice Response")
|
674 |
-
voice_response_button.click(fn=generate_voice_response, inputs=[chatbot, tts_choice], outputs=[gr.Audio(interactive=False, autoplay=True)],api_name="generate_voice_response")
|
675 |
|
676 |
bot_msg = chat_msg.then(bot, [chatbot, choice, tts_choice], [chatbot, gr.Audio(interactive=False, autoplay=True)],api_name="generate_voice_response")
|
677 |
# bot_msg = chat_msg.then(bot, [chatbot, choice, tts_choice], [chatbot, gr.Audio(interactive=False, autoplay=True)])
|
|
|
670 |
retriver_button.click(fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input]).then(
|
671 |
fn=bot, inputs=[chatbot, choice, tts_choice], outputs=[chatbot, gr.Audio(interactive=False, autoplay=True)],api_name="Ask_Retriever")
|
672 |
|
673 |
+
# voice_response_button = gr.Button("Voice Response")
|
674 |
+
# voice_response_button.click(fn=generate_voice_response, inputs=[chatbot, tts_choice], outputs=[gr.Audio(interactive=False, autoplay=True)],api_name="generate_voice_response")
|
675 |
|
676 |
bot_msg = chat_msg.then(bot, [chatbot, choice, tts_choice], [chatbot, gr.Audio(interactive=False, autoplay=True)],api_name="generate_voice_response")
|
677 |
# bot_msg = chat_msg.then(bot, [chatbot, choice, tts_choice], [chatbot, gr.Audio(interactive=False, autoplay=True)])
|