Search image by vector embedding app

This repo set up hosting flask api on Compute Engine service - google cloud.
This is the api for search function in InsCook App.
Database is hosted on firebase, each query image will be embedded into vector by CLIP model and used for search with vector embedding (See this document to know more).

Set up virtual environment

sudo apt-get update
sudo apt install git pip
sudo apt install python3.11-venv

Above line is for Debian.

Create and activate venv

python3 -m venv myenv
source myenv/bin/activate

Install flask and gunicorn

git clone https://github.com/SKN443/image_embedding_flask_demo.git
cd image_embedding_flask_demo
pip3 install --upgrade -r requirements.txt

Git clone repo and start sever by gunicorn

gunicorn -c gunicorn_config.py main:app