Fix: Corrected NotImplementedError in tts_pytorch.ipynb

This commit is contained in:
mirza-samad-ahmed-baig 2025-07-07 12:26:33 +05:00
parent 70500c620e
commit a09ac02022

View File

@ -81,7 +81,7 @@
"pcms = []\n",
"def _on_frame(frame):\n",
" print(\"Step\", len(pcms), end=\"\\r\")\n",
" if (frame != -1).all():\n",
" if (frame != -1).all().item():\n",
" pcm = tts_model.mimi.decode(frame[:, 1:, :]).cpu().numpy()\n",
" pcms.append(np.clip(pcm[0, 0], -1, 1))\n",
"\n",