{"id":22768191,"url":"https://github.com/rexsimiloluwah/fastapi-ml-apps","last_synced_at":"2026-04-05T21:04:02.043Z","repository":{"id":115380733,"uuid":"331567802","full_name":"rexsimiloluwah/fastapi-ml-apps","owner":"rexsimiloluwah","description":"Machine learning apps built with FastAPI","archived":false,"fork":false,"pushed_at":"2022-04-20T22:22:07.000Z","size":53234,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T11:15:24.238Z","etag":null,"topics":["docker","fastapi","machine-learning","python","scikit-learn","tensorflow"],"latest_commit_sha":null,"homepage":"https://fastapi-ml-apps.herokuapp.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rexsimiloluwah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-21T08:48:53.000Z","updated_at":"2022-04-20T22:22:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"ebd63fb8-468d-4621-b806-0a64b0d30887","html_url":"https://github.com/rexsimiloluwah/fastapi-ml-apps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rexsimiloluwah/fastapi-ml-apps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexsimiloluwah%2Ffastapi-ml-apps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexsimiloluwah%2Ffastapi-ml-apps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexsimiloluwah%2Ffastapi-ml-apps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexsimiloluwah%2Ffastapi-ml-apps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rexsimiloluwah","download_url":"https://codeload.github.com/rexsimiloluwah/fastapi-ml-apps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rexsimiloluwah%2Ffastapi-ml-apps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265500604,"owners_count":23777518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","fastapi","machine-learning","python","scikit-learn","tensorflow"],"created_at":"2024-12-11T14:10:12.605Z","updated_at":"2025-12-30T22:07:12.546Z","avatar_url":"https://github.com/rexsimiloluwah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## FastAPI Machine learning apps \n\n[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)                 \n[![Python 3.6](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-360/)\n\nJust a collection of simple machine learning apps built and deployed using FastAPI and Python.\n\n- [Heart disease prediction app](https://fastapi-ml-apps.herokuapp.com/heartdisease)\n- [Sentiment analysis app (NLP)](https://fastapi-ml-apps.herokuapp.com/moviessentiment)\n- [Object detection app (Computer vision)](https://fastapi-ml-apps.herokuapp.com/object-detection)\n- Flower multi-classification app (Computer vision)\n\n## Running the app \n\n**1.** Running the app locally on a development server\n\nClone the repository :- \n```\n$ git clone https://github.com/rexsimiloluwah/fastapi-ml-apps.git\n$ mkdir fastapi-ml-apps\n```\nInstall requirements/ app dependencies :- \n```\n$ pip install -r requirements.txt\n```\n\nRun the app :- \n```\n$ cd app \u0026\u0026 python main.py\n```\n\u003e View the app on http://localhost:5000\n\n**2.** Running the app via Docker \n```\n$ docker run --rm -p 5050:5050 similoluwaokunowo/fastapi-ml-apps\n```\n\n\u003e View the app on http://localhost:5050\n\nPulling the docker image\n```\n$ docker pull similoluwaokunowo/fastapi-ml-apps\n```\n\n*Computer vision app is not live yet due to slug size issues with tensorflow and keras \n\n\u003e All APIs are available on http://localhost:5000/docs locally or https://fastapi-ml-apps.herokuapp.com/docs\n\ni.e. For the Object detection API:- \n\n**Sample request**\n\n\u003cimg src=\"sampleimages/dog-hug.jpg\" alt=\"sample image\" /\u003e\n\n```\ncurl --location --request POST 'http://localhost:5000/objectdetection/predict' --form 'file=@\"/C:/Users/IT/Downloads/dog-hug.jpg\"'\n```\n\n**Response**\n```\n{\n    \"status\": true,\n    \"data\": {\n        \"predictions\": [\n            {\n                \"class\": \"dog\",\n                \"confidence\": 0.9255891442298889,\n                \"bounding_box\": [3, 386, 1098, 1340],\n                \"color\": [28, 220, 131]\n            },\n            {\n                \"class\": \"person\",\n                \"confidence\": 0.9850807785987854,\n                \"bounding_box\": [848, 146, 2002, 1330],\n                \"color\": [48, 84, 0]\n            }\n        ]\n    }\n}\n```\n\n\u003cimg src=\"sampleimages/objectdetectionoutput1.jpg\" alt=\"response\"\u003e\n\nTo view the live app :- \n\u003e Go to https://fastapi-ml-apps.herokuapp.com\n\nThanks for reading.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexsimiloluwah%2Ffastapi-ml-apps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexsimiloluwah%2Ffastapi-ml-apps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexsimiloluwah%2Ffastapi-ml-apps/lists"}