Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ import io
|
|
| 87 |
import numpy as np
|
| 88 |
import scipy.io.wavfile as wav
|
| 89 |
from fastapi import FastAPI, Request
|
| 90 |
-
from fastapi.responses import JSONResponse
|
| 91 |
@app.post("/voice_chat") async def voice_chat(request: Request):
|
| 92 |
# Đọc dữ liệu âm thanh thô từ ESP32 gửi lên
|
| 93 |
raw_audio = await request.body()
|
|
|
|
| 87 |
import numpy as np
|
| 88 |
import scipy.io.wavfile as wav
|
| 89 |
from fastapi import FastAPI, Request
|
| 90 |
+
from fastapi.responses import JSONResponse
|
| 91 |
@app.post("/voice_chat") async def voice_chat(request: Request):
|
| 92 |
# Đọc dữ liệu âm thanh thô từ ESP32 gửi lên
|
| 93 |
raw_audio = await request.body()
|