From fe25152533ad93b5780c8912070ae95eeb0cc8b8 Mon Sep 17 00:00:00 2001 From: Arun Gopi Date: Mon, 6 Apr 2020 17:57:47 +0530 Subject: [PATCH 1/8] Update homepage.html Added bootstrap support support, upload file size limit. --- .../flex_and_vision/templates/homepage.html | 131 ++++++++++++++++-- 1 file changed, 116 insertions(+), 15 deletions(-) diff --git a/codelabs/flex_and_vision/templates/homepage.html b/codelabs/flex_and_vision/templates/homepage.html index 5e36e051ef7..366b9bc3ecc 100644 --- a/codelabs/flex_and_vision/templates/homepage.html +++ b/codelabs/flex_and_vision/templates/homepage.html @@ -1,20 +1,121 @@ -

Google Cloud Platform - Face Detection Sample

+ + + + + + -

This Python Flask application demonstrates App Engine Flexible, Google Cloud -Storage, Datastore, and the Cloud Vision API.

+ + + + Google Cloud Platform - Face Detection Sample + + + + +
+ + +
+ + + + + +
- - -
- Upload File:
- -
- {% for image_entity in image_entities %} - -

{{image_entity['blob_name']}} was uploaded {{image_entity['timestamp']}}.

-

Joy Likelihood for Face: {{image_entity['joy']}}

- {% endfor %} + +
+ + +
+
+
+
+ Upload Photo:
+
+ + + +
+
+
+ +
+ + {% for image_entity in image_entities %} +
+
+ Card image cap +
+
Joy Likelihood
+

{{image_entity['joy']}}

+
+ +
+
+ + {% endfor %} + +
+ + + + + + + - + From e512ccecf52e9f7c313880622d3f4bfb269a02dd Mon Sep 17 00:00:00 2001 From: Arun Gopi Date: Wed, 15 Apr 2020 17:00:32 +0530 Subject: [PATCH 2/8] Update homepage.html --- .../flex_and_vision/templates/homepage.html | 49 ++++++++++++------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/codelabs/flex_and_vision/templates/homepage.html b/codelabs/flex_and_vision/templates/homepage.html index 366b9bc3ecc..59fb5664b38 100644 --- a/codelabs/flex_and_vision/templates/homepage.html +++ b/codelabs/flex_and_vision/templates/homepage.html @@ -8,7 +8,7 @@ - Google Cloud Platform - Face Detection Sample + Emotion analysis on photo @@ -17,10 +17,7 @@