diff --git a/app.py b/app.py new file mode 100644 index 0000000..6ddb8a3 --- /dev/null +++ b/app.py @@ -0,0 +1,9 @@ +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} diff --git a/pyproject.toml b/pyproject.toml index e4d7ccb..a979c8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,8 @@ authors = ["Timothy Farrell "] [tool.poetry.dependencies] python = "^3.8" +fastapi = "^0.75.2" +uvicorn = {extras = ["standard"], version = "^0.17.6"} [build-system] requires = ["poetry-core>=1.0.0"]