Skip to content

Instantly share code, notes, and snippets.

@esenthil2018
esenthil2018 / end_to_end_implementation-v1.ipynb
Last active June 26, 2021 04:46
End_To_End_Implementation-V1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@esenthil2018
esenthil2018 / end_to_end_implementation-v1.ipynb
Created June 27, 2021 22:45
End_To_End_Implementation-V1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import tensorflow as tf
import numpy as np
import streamlit as st
from PIL import Image
import requests
from io import BytesIO
@esenthil2018
esenthil2018 / copy-of-end_to_end_implementation-v2.ipynb
Created June 28, 2021 20:33
Copy of End_To_End_Implementation-V2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
variable "project_id" {
description = "MLOps-Terraform Project"
type = string
}
project_id = "mlops2022"
subnet_region = "us-west1"
zone = "us-west1-a"
name_prefix = "terraform"
machine_type = "n1-standard-8"
SRC_REPO=https://github.com/esenthil2018/Terraform-GCP.git
LOCAL_DIR=terraform_prov
kpt pkg get $SRC_REPO/provision@main $LOCAL_DIR
cd $LOCAL_DIR
terraform {
required_version = ">= 0.14"
required_providers {
google = "~> 3.6"
}
}
provider "google" {
project = var.project_id
}
variable "project_id" {
description = "MLOps-Terraform Project"
type = string
}
variable "region" {
description = "The region for the GCS bucket"
type = string
default = null
}
project_id = "mlops2022"
subnet_region = "us-west1"
zone = "us-west1-a"
name_prefix = "mlops2022tf"
machine_type = "n1-standard-8"