radinhas commited on
Commit
8c6d906
1 Parent(s): 341f0bd

Update apis/chat_api.py

Browse files
Files changed (1) hide show
  1. apis/chat_api.py +1 -1
apis/chat_api.py CHANGED
@@ -111,7 +111,7 @@ class ChatAPIApp:
111
  audioobj.write_to_fp(mp3_fp)
112
  #buffer = bytearray(mp3_fp.read())
113
  #base64EncodedStr = base64.encodebytes(buffer)
114
- return Response(content=mp3_fp, media_type="audio/mpeg")
115
 
116
  def setup_routes(self):
117
  for prefix in ["", "/v1"]:
 
111
  audioobj.write_to_fp(mp3_fp)
112
  #buffer = bytearray(mp3_fp.read())
113
  #base64EncodedStr = base64.encodebytes(buffer)
114
+ return Response(content=mp3_fp.read(), media_type="audio/mpeg")
115
 
116
  def setup_routes(self):
117
  for prefix in ["", "/v1"]: