prathwik0 / vertexai-api

A microservice that provides a REST API for Vertex AI. This microservice is built using Flask and deployed on Google Cloud Run.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vertex AI API

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

Tech used:

Features

  • Text Translation
  • Text to Speech
  • Medical Query
  • Mental Health Query

Installation

    • 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
    
  1. Create a virtual environment and activate it

     python3 -m venv venv
     source venv/bin/activate
    
  2. Install the dependencies

    pip3 install -r requirements.txt
    
  3. Generate a Google Service Account config file and save it in a file named CREDENTIALS in env.

  4. Then, run the development server:

    python3 main.py
    

Installation using Docker

  1. Build the Docker image using the following command:

    docker build -t vertexai-api .
    
  2. Run the Docker container using the following command:

    docker run -p 80:80 -e .env vertexai-api
    

About

A microservice that provides a REST API for Vertex AI. This microservice is built using Flask and deployed on Google Cloud Run.


Languages

Language:Python 78.5%Language:Dockerfile 21.5%