10 lines
281 B
Python
10 lines
281 B
Python
from fastapi import FastAPI, File, UploadFile
|
|
|
|
app = FastAPI()
|
|
|
|
@app.post("/uploadfile/")
|
|
async def upload_file(file: UploadFile = File(...)):
|
|
contents = await file.read()
|
|
# Here you can process the WAV file data stored in 'contents'
|
|
return {"filename": file.filename}
|