{"id":13704834,"url":"https://github.com/shankarj67/Water-classifier-fastai","last_synced_at":"2025-05-05T12:32:20.630Z","repository":{"id":106712238,"uuid":"160231419","full_name":"shankarj67/Water-classifier-fastai","owner":"shankarj67","description":"Deploy your Flask web app classifier on Heroku which is written using fastai library.","archived":false,"fork":false,"pushed_at":"2019-11-19T02:06:33.000Z","size":79627,"stargazers_count":40,"open_issues_count":6,"forks_count":50,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-13T12:40:57.297Z","etag":null,"topics":["classifier","deep-learning","fastai","flask","flask-api","flask-web","python3","pytorch","resnet"],"latest_commit_sha":null,"homepage":"https://water-classifier1.herokuapp.com/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shankarj67.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-12-03T17:51:21.000Z","updated_at":"2024-06-04T02:12:12.000Z","dependencies_parsed_at":"2024-01-07T00:09:21.527Z","dependency_job_id":"4ddcf5ff-9aa0-4fd9-843a-8186228dceda","html_url":"https://github.com/shankarj67/Water-classifier-fastai","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shankarj67%2FWater-classifier-fastai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shankarj67%2FWater-classifier-fastai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shankarj67%2FWater-classifier-fastai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shankarj67%2FWater-classifier-fastai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shankarj67","download_url":"https://codeload.github.com/shankarj67/Water-classifier-fastai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252497633,"owners_count":21757649,"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":["classifier","deep-learning","fastai","flask","flask-api","flask-web","python3","pytorch","resnet"],"created_at":"2024-08-02T22:00:18.162Z","updated_at":"2025-05-05T12:32:20.298Z","avatar_url":"https://github.com/shankarj67.png","language":"HTML","funding_links":[],"categories":["Github Links :sparkle:"],"sub_categories":[],"readme":"\n# Deploy water classifier using flask on heroku\n\n[![](https://img.shields.io/badge/python-3.5%2B-green.svg)]()\n\n\n\u003e A web app to predict whether water is clean or dirty using fastai library.\n\n------------------\n\n\nDemo:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshot1.png\" width=\"600px\" alt=\"\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshot2.png\" width=\"600px\" alt=\"\"\u003e\n\u003c/p\u003e\n\n------------------\n\n\n## Getting started\n\n- Fork and clone this repo on to your system\n\n\n## Customization\n\n### Put your model inside path/models folder\n\n- Place your trained `.pth` file under path/models/ directory.\n\n### Change the class and path name\n\n- Open \"app.py\" and search for a variable called classes and change that with your own classes\n\n- If your path name is different that \"stage-2.pth\", then change the learn.load(\"with_your_file_name.pth\") in \"app.py\"\n\n\n\n\n### UI Change\n\nModify files in `templates` and `static` directory.\n\n`index.html` for the UI and `main.js` for all the behaviors\n\n\n\n## Heroku Installation\n\n- Make sure that heroku is installed on your system, if you want to install then follow this https://devcenter.heroku.com/articles/heroku-cli#download-and-install\n\n- Go to https://www.heroku.com/ then login or signup into heroku.\n\n- Once you are logged in, you will have to click on new and click on create a new app as given in the screenshot below\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshot3.png\" width=\"600px\" alt=\"\"\u003e\n\u003c/p\u003e\n\n- Give your app name and click on create app\n\n- Go to the folder where you have cloned my repo and follow the steps given on the page\n\n- Once you are done, you will see the link to check your app on browser like this https://water-classifier1.herokuapp.com/\n\n\u003e Note: If App is showing Application error then refresh the browser,It will work fine.\n\n\n\n\n## Future Roadmap\n- Add unit test.\n- Add CI/CD integration.\n- Create a robust image classifier using the more data or using some advance technique.\n- Adding celery and redis as a message brocker to handle the long task.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshankarj67%2FWater-classifier-fastai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshankarj67%2FWater-classifier-fastai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshankarj67%2FWater-classifier-fastai/lists"}