python version - 3.9.6 [https://tecadmin.net/install-python-3-9-on-amazon-linux/] pip version - 21.2.4 [https://sparkbyexamples.com/python/upgrade-pip-latest-or-specific-version/]
- git clone this repository
- cd intp api
- run
docker build -t app . - run
docker run -d -p 5000:5000 api
- Install python in the instance
- git clone this repository
- cd into the directory
- run
python -m venv env - Activate the virtual env
source env/bin/activate - Run
pip install -r requirements.txt - cd into the api directory
cd api - Run
gunicorn -w 3 -b :5000 -t 0 --reload --daemon wsgi:app
- After running the app
- open the wallsegment.postman_collection.json file in POSTMAN app
- Use the POST Request to get the infered image name from the JSON returned
- In the header of the request set a key value pair
- key = auth-token
- SHA256(quleep_wallpaper_segmentation)
- In the body set request type as form data and give 3 key value pairs
- Key = wallimg | value = image ( send the image NOT the link of the Image)
- Key = designimg | value = image of the design ( send the image NOT the link of the Image)
- Key = detectionmode | value =
- In the header of the request set a key value pair
- Use the GET request to get the image (The image name from the revious step must be passed on as the query parameter)