Skip to content

Commit ecbc143

Browse files
authored
Updated Inference Sequence Sample_audio.ipynb
Updated in Inference Sequence in Sample_audio.ipynb . Please refer this [thread](tensorflow/tensorflow#58612 (comment)) for details .
1 parent aabe9bc commit ecbc143

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/en/tutorials/audio/simple_audio.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,8 @@
834834
"x = x[tf.newaxis,...]\n",
835835
"\n",
836836
"prediction = model(x)\n",
837-
"plt.bar(commands, tf.nn.softmax(prediction[0]))\n",
837+
"x_labels = ['no', 'yes', 'down', 'go', 'left', 'up', 'right', 'stop']\n",
838+
"plt.bar(x_labels, tf.nn.softmax(prediction[0]))\n",
838839
"plt.title('No')\n",
839840
"plt.show()\n",
840841
"\n",

0 commit comments

Comments
 (0)