Skip to content

Commit 0e84529

Browse files
TheMichaelHuandrewferlitsch
authored andcommitted
fix users bug and emphasize kernal restart (#2407)
1 parent b141993 commit 0e84529

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tables/automl/notebooks/music_recommendation/music_recommendation.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@
8484
"metadata": {},
8585
"outputs": [],
8686
"source": [
87-
"! pip install --upgrade --quiet google-cloud-automl google-cloud-bigquery"
87+
"! pip3 install --upgrade --quiet google-cloud-automl google-cloud-bigquery"
8888
]
8989
},
9090
{
9191
"cell_type": "markdown",
9292
"metadata": {},
9393
"source": [
94-
"Restart the kernel to allow `automl_v1beta1` to be imported. The following cell should succeed after a kernel restart:"
94+
"__Restart the kernel__ to allow `automl_v1beta1` to be imported. The following cell should succeed after a kernel restart:"
9595
]
9696
},
9797
{
@@ -624,10 +624,10 @@
624624
" WHERE user = \"{}\" AND CAST(tables.value AS INT64) = 1\n",
625625
" ORDER BY score DESC\n",
626626
" LIMIT {}\n",
627-
"\"\"\".format(output_uri[5:].replace(\":\", \".\"), training_table, user, n)\n",
627+
"\"\"\".format(output_uri[5:].replace(\":\", \".\"), training_table, users[0], n)\n",
628628
"query_job = bq_client.query(query)\n",
629629
"\n",
630-
"print(\"Top {} song recommended for {}:\".format(n, user))\n",
630+
"print(\"Top {} song recommended for {}:\".format(n, users[0]))\n",
631631
"for idx, row in enumerate(query_job):\n",
632632
" print(\"{}.\".format(idx + 1), row[\"song\"])"
633633
]

0 commit comments

Comments
 (0)