Skip to content

xtineskim/gke-ai-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyCon Ghana 2022 Google Cloud Workshop

This repo is the UI of the workshop that @sohailazangeneh and @ckim328 are running in October 2022.

Running instructions

NOTE

This repository assumes that you have already trained and deployed a Vertex AI AutoML Image Classification model by following the instructions in this Qwiklab (add the link).

Run on your local machine

  1. Create and activate a virtual environment.

    This step is not required but it's recommended.
    Create a python virtual environment called pycon-venv using the following command:

     python3 -m venv pycon-venv
    

    Activate your virtual environment

     source pycon-venv/bin/activate
    
  2. Install the requirements.
    Run the following command to install the requirements:

     pip install -r requirements.txt
    
  3. Copy the endpoint id of the Vertex AI endpoint that the model is deployed on and paste it in the app/.env file:

     ENDPOINT_ID = ""
    

    For example, if the endpoint id is 1111222233334444555, your .env file should look like:

     ENDPOINT_ID = "1111222233334444555"
    
  4. Run the app using streamlit command:

     streamlit run app/main.py
    

About

A demo of GKE with Vertex AI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published