Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Summarizer

Codelab: https://codelabs.developers.google.com/devsite/codelabs/build-youtube-summarizer

Prerequisites

gcloud auth login
gcloud config set project <YOUR_PROJECT_ID>
gcloud services enable aiplatform.googleapis.com \
    run.googleapis.com \
    cloudbuild.googleapis.com \
    cloudresourcemanager.googleapis.com

Install

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Run locally

Create a .env file in the root directory by copying .env.example and filling in your Google Cloud project ID and desired region. You can use the recommended region europe-west1.

PROJECT_ID=your-project-id
REGION=europe-west1

Then run the app and open http://localhost:8080 in your browser:

python3 app.py

Build and Deploy to Cloud Run

The simplest way is to let Google Cloud handle the build and deployment in one step. This automatically handles the platform architecture (building on Cloud Build) and uses Artifact Registry.

gcloud run deploy youtube-summarizer \
  --source . \
  --region=europe-west1 \
  --allow-unauthenticated \
  --set-env-vars="PROJECT_ID=your-project-id,REGION=europe-west1"

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages