The first thing to do is to clone the repository:
$ git clone https://github.com/MayankGeek/Image_Captioning.git
$ cd Image_Captioning
$ cd Caption_Project
Activate virtual environment to install dependencies in and activate it:
$ source venv/bin/activate
Then install the dependencies:
(venv)$ pip3 install -r requirements.txt
Once pip3
has finished downloading the dependencies:
(venv)$ python3 manage.py runserver
And navigate to http://127.0.0.1:8000/
.
Go to settings.py file under Img_Upload folder:
- Go to line number 152 & 154 replace 'enter email address' with your gmail address.
- Go to line number 153 and replace 'enter your google app password' with your google app password.
-
Go to your google account.
-
Under settings tab click on App passwords under Signing in to Google. (you need to enable 2-step verification in order to make it working)
-
Click the select app drop down and select other(Custom name) and then type Image_Captioning.
-
Click on generate
-
You will get a 16 digit code in a yellow box copy that code and replace 'enter your google app password' on line 153 with it.