Dataset - We scrap the data from the web for images of people who are drunk & sober.
Make sure that you have the following:
- Python 3.7 and pip (which comes with Python 3+)
- All the mention libraries in Requirements.Txt File.
What each file does:
app.py
- runs the server and loads the user interface.app/templates/base.html
- contains the base HTMLapp/templates/home.html
- contains the body of the HTMLapp/templates/result.html
- contains the final result of the HTML
- Make sure you have Python 3.7 and a text editor installed.
- Clone the repo using
git clone https://github.com/vivektalwar13071999/deaddict.git
- Change the directory to
deaddict
where it is downloaded & savedcd filepath/deaddict
- Install the required packages using
pip install -r requirements.txt
.You can manually install them as you come across them if need be, but this will install them all for you. Note that if you add more packages, run pip freeze > requirements.txt to save them to your requirements file. - In the main directory Run
python3 app.py
. - A deployment server will start on local host
127.0.0.1:5000
and go to the web-browser and type thishttp://127.0.0.1:5000
- A screen with slogan (# Fighting Addiction & Substance Inebriety using Artificial Intelligence) will appear and a Upload option will be given.
- Upload a
image
file from the local computer and click on predict the result will appear on the screen in few moments.