This will serve model as HTTP/REST API at:localhost:8501
docker run -p 8501:8501 --mount type=bind,source=C:\Users\Asus\Desktop\project_practice\model_py,target=/models/my_model -e MODEL_NAME=my_model -t tensorflow/serving
In the root folder run the following commands to create database
mkdir database
cd database
touch database.db
Start python shell in sentiment_analysis folder and run
import model
model.db.create_all()
From sentiment_analysis folder run the following command to store movies
python movies.py
The flask server will serve the site at localhost:5000
cd sentiment_analysis
python index.py