A flask app for predicting sentiment of movie reviews trained on imdb movie reviews dataset
-
Clone the repository
-
Create a virtual conda environment with
conda create -n sentiment python=3.9
and activate the env withconda activate sentiment
. -
Install the necessary packages with
pip insatll -r requirements.txt
-
Run python app.py to view the final webpage
-
Change the Dockerfile by changing the
WORKDIR
to your own path where project files are stored -
Build the Dockerfile on cmd as:
docker build . -t sentiment
-
Once the image is downloaded run a container as:
docker run -d --name sentiment -p 5000:5000 sentiment
-
Now you have a docker container named sentiment running.
-
Go to
localhost:5000
to view the sentiment analysis web application