wookimchye commited on
Commit
0147c61
·
verified ·
1 Parent(s): 749da80

Update Web-Chatbot-Speech-En-app.py

Browse files
Files changed (1) hide show
  1. Web-Chatbot-Speech-En-app.py +1 -1
Web-Chatbot-Speech-En-app.py CHANGED
@@ -80,7 +80,7 @@ def ask_bot():
80
  # Return the audio file
81
  @app.route('/response.wav')
82
  def get_audio():
83
- return send_file("./response.wav", mimetype="audio/wav")
84
 
85
  if __name__ == '__main__':
86
  app.run(debug=True)
 
80
  # Return the audio file
81
  @app.route('/response.wav')
82
  def get_audio():
83
+ return send_file(temp_audio_file.name, mimetype="audio/wav")
84
 
85
  if __name__ == '__main__':
86
  app.run(debug=True)