This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dataset: image_classification_dataset | |
# Table name: image_text_detail | |
import os | |
import sys | |
# Import Google Cloud Library modules | |
from google.cloud import storage, bigquery, language, vision, translate_v2 | |
if ('GOOGLE_APPLICATION_CREDENTIALS' in os.environ): | |
if (not os.path.exists(os.environ['GOOGLE_APPLICATION_CREDENTIALS'])): | |
print ("The GOOGLE_APPLICATION_CREDENTIALS file does not exist.\n") | |
exit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runtime: php72 | |
env_variables: | |
# Replace USER, PASSWORD, DATABASE, and CONNECTION_NAME with the | |
# values obtained when configuring your Cloud SQL instance. | |
CLOUDSQL_USER: Unique Name | |
CLOUDSQL_PASSWORD: Unique Password | |
CLOUDSQL_DSN: "mysql:dbname=<strong>Unique Name</strong>;unix_socket=/cloudsql/<strong>Unique Name:Location you Selected :my-demo-database-instance</strong>" | |
# [END gae_cloudsql_mysql_env] |