Spaces:
Running
Running
Update apis/chat_api.py
Browse files- apis/chat_api.py +1 -1
apis/chat_api.py
CHANGED
|
@@ -112,7 +112,7 @@ class ChatAPIApp:
|
|
| 112 |
buffer = bytearray(mp3_fp.read())
|
| 113 |
base64EncodedStr = base64.encodebytes(buffer)
|
| 114 |
item_response = {
|
| 115 |
-
"src":
|
| 116 |
}
|
| 117 |
json_compatible_item_data = jsonable_encoder(item_response)
|
| 118 |
return JSONResponse(content=json_compatible_item_data)
|
|
|
|
| 112 |
buffer = bytearray(mp3_fp.read())
|
| 113 |
base64EncodedStr = base64.encodebytes(buffer)
|
| 114 |
item_response = {
|
| 115 |
+
"src": mp3_fp
|
| 116 |
}
|
| 117 |
json_compatible_item_data = jsonable_encoder(item_response)
|
| 118 |
return JSONResponse(content=json_compatible_item_data)
|