Gaia backend
git clone https://gitlab.niveussolutions.com/niv-hack/niv-hack-2023/t3-tribe/vertexai-api.git
cd vertexai-api
Create a virtual environment and activate it
python3 -m venv venv
source venv/bin/activate
Install the dependencies
pip3 install -r requirements.txt
Generate a Google Service Account config file and save it in a file named CREDENTIALS in env.
Then, run the development server:
python3 main.py
Build the Docker image using the following command:
docker build -t gaia .
Run the Docker container using the following command:
docker run -p 8080:8080 -e .env gaia