Skip to content

Commit 01fb931

Browse files
Minor fix in type hint and stringdoc
*predict_next_note* currently says it returns an ID, where the return type is int, but it actually returns a tuple.
1 parent 39ff245 commit 01fb931

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/en/tutorials/audio/music_generation.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,8 @@
10731073
"def predict_next_note(\n",
10741074
" notes: np.ndarray, \n",
10751075
" keras_model: tf.keras.Model, \n",
1076-
" temperature: float = 1.0) -> int:\n",
1077-
" \"\"\"Generates a note IDs using a trained sequence model.\"\"\"\n",
1076+
" temperature: float = 1.0) -> Tuple:\n",
1077+
" \"\"\"Generates a note as a tuple of (pitch, step, duration), using a trained sequence model.\"\"\"\n",
10781078
"\n",
10791079
" assert temperature > 0\n",
10801080
"\n",

0 commit comments

Comments
 (0)