Skip to content

Commit ced323b

Browse files
Merge pull request #2205 from felipetovarhenao:patch-2
PiperOrigin-RevId: 518323478
2 parents 4c9b075 + 02b8f5a commit ced323b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/en/tutorials/audio/music_generation.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"\n",
146146
"from IPython import display\n",
147147
"from matplotlib import pyplot as plt\n",
148-
"from typing import Dict, List, Optional, Sequence, Tuple"
148+
"from typing import Optional"
149149
]
150150
},
151151
{
@@ -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[int, float, float]:\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)