Pijush2023 commited on
Commit
9b18e68
·
verified ·
1 Parent(s): dfc06ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -673,7 +673,7 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
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)])
677
  # bot_msg = chat_msg.then(bot, [chatbot, choice, tts_choice], [chatbot, gr.Audio(interactive=False, autoplay=True)])
678
  bot_msg.then(lambda: gr.Textbox(value="", interactive=True, placeholder="Ask Radar!!!...", show_label=False), None, [chat_input])
679
  chatbot.like(print_like_dislike, None, None)
 
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])
677
  # bot_msg = chat_msg.then(bot, [chatbot, choice, tts_choice], [chatbot, gr.Audio(interactive=False, autoplay=True)])
678
  bot_msg.then(lambda: gr.Textbox(value="", interactive=True, placeholder="Ask Radar!!!...", show_label=False), None, [chat_input])
679
  chatbot.like(print_like_dislike, None, None)