Codelab: https://codelabs.developers.google.com/devsite/codelabs/build-youtube-summarizer
gcloud auth logingcloud config set project <YOUR_PROJECT_ID>gcloud services enable aiplatform.googleapis.com \
run.googleapis.com \
cloudbuild.googleapis.com \
cloudresourcemanager.googleapis.compython3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtCreate 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-west1Then run the app and open http://localhost:8080 in your browser:
python3 app.pyThe 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"