Skip to content

Commit f670eaf

Browse files
committed
Cast user_id as string in notebook
1 parent fea4415 commit f670eaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebook/mab-reviews-helpfulness.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@
13931393
"\n",
13941394
"def api_invocation(user_id, text_array):\n",
13951395
" payload = {\n",
1396-
" \"user_id\": user_id,\n",
1396+
" \"user_id\": str(user_id),\n",
13971397
" \"endpoint_name\": endpoint_name, \n",
13981398
" \"content_type\": \"application/json\",\n",
13991399
" \"data\": json.dumps({\"instances\" : text_array, \"configuration\": { \"k\": 1 }}), \n",
@@ -1856,4 +1856,4 @@
18561856
},
18571857
"nbformat": 4,
18581858
"nbformat_minor": 4
1859-
}
1859+
}

0 commit comments

Comments
 (0)