GoogleCloudPlatform/appengine-photoalbum-example

Name: appengine-photoalbum-example

Owner: Google Cloud Platform

Description: null

Created: 2016-12-11 02:31:34.0

Updated: 2018-02-06 19:56:41.0

Pushed: 2017-03-03 22:47:59.0

Homepage: null

Size: 21

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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
Language
APIs
Prerequisites
  1. A Google Cloud Platform Account
  2. A new Google Cloud Platform Project for this lab with billing enabled (You can choose the region for App Engine deployment with advanced options.)
  3. Enable the Cloud Vision API and Cloud Translation API from the API Manager
Do this first

In this section you will start your Google Cloud Shell and clone the application code repository to it.

  1. Open the Cloud Console

  2. Click the Google Cloud Shell icon in the top-right and wait for your shell to open:

  3. Clone the lab repository in your cloud shell, then cd into that dir:

    t clone https://github.com/GoogleCloudPlatform/appengine-photoalbum-example.git
    ing into 'appengine-photoalbum-example'...
    
    
     appengine-photoalbum-example
    
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.

You can replace the timezone code used for timestamps, too.

variables:
NG_TAG: 'it'              <-- change to your favorite language code.
MESTAMP_TZ: 'Europe/Rome' <-- change to your favorite timezone code.
Deploy the application
p install -r requirements.txt -t lib
loud app create
loud datastore create-indexes index.yaml
loud 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 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, choose the project you created for this lab, and delete it. That's it.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.