This is the API for Speech Emotion Recognition. It is an indepedent service that deployed only for machine learning hotel recommendation model.
| Information | Value |
|---|---|
| Docker Image | C23-PS163-EmoJournal/machine-learning-api |
| Port Open | 80 |
| Endpoint | Method | Body Sent (JSON) | Return |
|---|---|---|---|
| / | GET | None | "message": "Hello World" |
| /predict/{file_path:path} | GET | file_path: str | return Emotion and Confidence in JSON |
| /list_files/ | GET | None | {"files": files} |
| /uploadfile/ | POST | file: UploadFile - FormData | "filename": file.filename, "filepath": dest |
- Python 3.8.10
- FastAPI
make docker images with docker build -t emojournal-ml-api:v1 .
And then,
run with docker run --name container1 -p 80:80 emojournal-ml-api:v1
- Go to dashboard Cloud Run, and then click
Create Service - Select
Continuously deploy new revisions from a source repositoryand then clickSet up with CLoud Build. - Select
GitHub (Cloud Build GitHub App), this repository, and then clickNext. - Select branch
mainand bulid configurationDockerfile, and then clickSave. - In the
Container, Networking, and Securitysection, see theContainer portand set80. - Click
Createand wait for the build process to complete.