# appengine-photoalbum-example **Repository Path**: mirrors_GoogleCloudPlatform/appengine-photoalbum-example ## Basic Information - **Project Name**: appengine-photoalbum-example - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Photo Album Example Disclaimer: This is not an official Google product. This is an example application demonstrating how Vision API and Translation API can be used to create a photo album application which automatically add appropriate tags to uploaded photos with various languages. ## Products - [App Engine][1] ## Language - [Python][2] ## APIs - [Cloud Vision API][5] - [Cloud Translation API][6] [1]: https://cloud.google.com/appengine/docs [2]: https://python.org [5]: https://cloud.google.com/vision/ [6]: https://cloud.google.com/translate/ ## Prerequisites 1. A Google Cloud Platform Account 2. [A new Google Cloud Platform Project][7] for this lab with billing enabled (You can choose the region for App Engine deployment with advanced options.) [7]: https://console.developers.google.com/project ## Do this first In this section you will start your [Google Cloud Shell][9] and clone the application code repository to it. 1. [Open the Cloud Console][10] 2. Click the Google Cloud Shell icon in the top-right and wait for your shell to open: ![](docs/img/cloud-shell.png) 3. Set project ID in the session. (Specify your project ID in `[PROJECT_ID]` below.) ```shell $ gcloud config set project [PROJECT_ID] ``` 4. Enable the Cloud Vision API and Cloud Translation API. ```shell $ gcloud services enable vision.googleapis.com translate.googleapis.com ``` 5. Clone the lab repository in your cloud shell, then `cd` into that dir: ```shell $ git clone https://github.com/GoogleCloudPlatform/appengine-photoalbum-example.git Cloning into 'appengine-photoalbum-example'... ... $ cd appengine-photoalbum-example ``` [9]: https://cloud.google.com/cloud-shell/docs/ [10]: https://console.cloud.google.com/ ## Customize the language used for tag names Open `app.yaml` with a text editor and replace the language code to your favorite one from the [supported languages][11]. You can replace the timezone code used for timestamps, too. ```yaml env_variables: TAG_LANG: 'ja' <-- change to your favorite language code. TIMESTAMP_TZ: 'Asia/Tokyo' <-- change to your favorite timezone code. ``` [11]: https://cloud.google.com/translate/docs/languages ## Deploy the application ```shell $ gcloud app create $ gcloud datastore indexes create index.yaml $ gcloud app deploy ``` By executing these commands on the Cloud Shell, the project id is automatically applied to the application and the application URL will be something like: `https://.appspot.com`. You can see Datastore's index creation status from the Cloud Console. Once indexes have been created successfully, you can start using the application. ## Clean up Clean up is really easy, but also super important: if you don't follow these instructions, you will continue to be billed for the project you created. To clean up, navigate to the [Google Developers Console Project List][12], choose the project you created for this lab, and delete it. That's it. [12]: https://console.developers.google.com/project