Skip to content

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

Notifications You must be signed in to change notification settings

NidheeshaT/vertexai-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages