From 5e2442e3483223d929dcec8b0988be5a54097274 Mon Sep 17 00:00:00 2001 From: henrikvalv3 Date: Wed, 11 Feb 2026 15:38:23 +0000 Subject: [PATCH] fix(notebooks): strip whitespace from secret inputs --- .../places_insights_custom_location_scores.ipynb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/places_insights/notebooks/custom_location_scores/places_insights_custom_location_scores.ipynb b/places_insights/notebooks/custom_location_scores/places_insights_custom_location_scores.ipynb index 0b203cd..4ec4b28 100644 --- a/places_insights/notebooks/custom_location_scores/places_insights_custom_location_scores.ipynb +++ b/places_insights/notebooks/custom_location_scores/places_insights_custom_location_scores.ipynb @@ -150,8 +150,8 @@ "\n", "# 1. Retrieve Secrets\n", "try:\n", - " GCP_PROJECT_ID = userdata.get('GCP_PROJECT_ID')\n", - " GMP_API_KEY = userdata.get('GMP_API_KEY')\n", + " GCP_PROJECT_ID = userdata.get('GCP_PROJECT_ID').strip()\n", + " GMP_API_KEY = userdata.get('GMP_API_KEY').strip()\n", " print(f\"✅ Secrets retrieved for project: {GCP_PROJECT_ID}\")\n", "except userdata.SecretNotFoundError as e:\n", " raise ValueError(\"Missing Secrets! Please add 'GCP_PROJECT' and 'GMP_API_KEY' to Colab Secrets.\") from e\n", @@ -474,7 +474,6 @@ ")\n", "\n", "# 3. Create Custom Legend HTML\n", - "# Positioned at Bottom-Right to avoid the Google Logo at Bottom-Left.\n", "legend_html = '''\n", "
\n",