A microservice that provides a REST API for Vertex AI. This microservice is built using Flask and deployed on Google Cloud Run.
Access the API at: https://vertex-api.icywater-c883e88b.centralus.azurecontainerapps.io
- Text Translation
- Text to Speech
- Medical Query
- Mental Health Query
-
- Fork the repo
- Clone the repo to your local system
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 vertexai-api .
-
Run the Docker container using the following command:
docker run -p 80:80 -e .env vertexai-api