binxio / aitraining

AI Training Repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI Training

Deploying the Flask WebApp to GCP Cloud Run:

gcloud auth login
gcloud config set project <projectid>
gcloud auth configure-docker 
docker buildx build . --platform linux/amd64 -t <yourname>-myfirstai
docker tag <yourname>-myfirstai gcr.io/<projectid>/<yourname>-myfirstai
docker push gcr.io/<projectid>/<yourname>-myfirstai
gcloud run deploy <yourname>-myfirstai \
  --image gcr.io/<projectid>/<yourname>-myfirstai \
  --platform managed --region us-east1 --allow-unauthenticated

Note that you might need to configure the API key as an environment variable.

Local testing

python3 app.py

About

AI Training Repository


Languages

Language:CSS 73.1%Language:Python 19.1%Language:JavaScript 7.1%Language:Dockerfile 0.7%