From af7c4679c9dbfb2ecaa535185155bdb47caadb82 Mon Sep 17 00:00:00 2001 From: Prabor Mukherjee <57007091+prabormukherjee@users.noreply.github.com> Date: Wed, 14 Oct 2020 12:30:49 +0530 Subject: [PATCH 1/2] modified step 4 Due to some tab indentation the cloud shell fails to rectify the end of line. It will fix this issue --- ...ted: Create and Manage Cloud Resources: Challenge | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Getting Started: Create and Manage Cloud Resources: Challenge b/Getting Started: Create and Manage Cloud Resources: Challenge index 5ecf392..f192067 100644 --- a/Getting Started: Create and Manage Cloud Resources: Challenge +++ b/Getting Started: Create and Manage Cloud Resources: Challenge @@ -28,12 +28,12 @@ Step 3:kubectl get pods Step 4:cat << EOF > startup.sh - #! /bin/bash - apt-get update - apt-get install -y nginx - service nginx start - sed -i -- 's/nginx/Google Cloud Platform - '"\$HOSTNAME"'/' /var/www/html/index.nginx-debian.html - EOF +#! /bin/bash +apt-get update +apt-get install -y nginx +service nginx start +sed -i -- 's/nginx/Google Cloud Platform - '"\$HOSTNAME"'/' /var/www/html/index.nginx-debian.html +EOF Step 5:gcloud compute instance-templates create web-server-template \ --metadata-from-file startup-script=startup.sh \ From 43dba1dd4f897143e33ac4aa61ccfb893cfca63c Mon Sep 17 00:00:00 2001 From: Prabor Mukherjee <57007091+prabormukherjee@users.noreply.github.com> Date: Wed, 14 Oct 2020 12:32:02 +0530 Subject: [PATCH 2/2] Modify python command in line 3 changed python3 to python, so that it works properly --- Integrate with Machine Learning APIs: Challenge Lab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Integrate with Machine Learning APIs: Challenge Lab b/Integrate with Machine Learning APIs: Challenge Lab index 1c7bee1..2c53bd6 100644 --- a/Integrate with Machine Learning APIs: Challenge Lab +++ b/Integrate with Machine Learning APIs: Challenge Lab @@ -1,6 +1,6 @@ #WATCH FULL LAB ON : https://www.youtube.com/watch?v=ZZBt6geViXc -python3 analyze-images.py $DEVSHELL_PROJECT_ID $DEVSHELL_PROJECT_ID +python analyze-images.py $DEVSHELL_PROJECT_ID $DEVSHELL_PROJECT_ID SELECT locale,COUNT(locale) as lcount FROM image_classification_dataset.image_text_detail GROUP BY locale ORDER BY lcount DESC