Pijush2023 commited on
Commit
b8472b7
·
verified ·
1 Parent(s): ed768c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1401,7 +1401,7 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
1401
  fn=generate_bot_response, inputs=[chatbot, choice, retrieval_mode, model_choice], outputs=[chatbot], api_name="api_generate_bot_response"
1402
  ).then(
1403
  # Then, generate the TTS response based on the bot's response
1404
- fn=generate_tts_response, inputs=[chatbot, tts_choice], outputs=[audio_output],streaming=True,autoplay=True, api_name="api_generate_tts_response"
1405
  ).then(
1406
  fn=show_map_if_details, inputs=[chatbot, choice], outputs=[location_output, location_output], api_name="api_show_map_details"
1407
  ).then(
 
1401
  fn=generate_bot_response, inputs=[chatbot, choice, retrieval_mode, model_choice], outputs=[chatbot], api_name="api_generate_bot_response"
1402
  ).then(
1403
  # Then, generate the TTS response based on the bot's response
1404
+ fn=generate_tts_response, inputs=[chatbot, tts_choice], outputs=[audio_output], api_name="api_generate_tts_response"
1405
  ).then(
1406
  fn=show_map_if_details, inputs=[chatbot, choice], outputs=[location_output, location_output], api_name="api_show_map_details"
1407
  ).then(