This commit is contained in:
Alexandre Défossez 2025-07-03 15:04:01 +02:00
parent 0b5a5fbed2
commit 080f349403

View File

@ -7,10 +7,11 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"moshi==0.2.7\"\n",
"# If running from a Google Colab, you can instead use the following two lines to prevent PyTorch from being reinstalled.\n",
"# !pip install 'sphn < 0.2'# If\n",
"# !pip install --no-deps \"moshi==0.2.7"
"# Fast install, might break in the future.\n",
"!pip install 'sphn<0.2'\n",
"!pip install --no-deps \"moshi==0.2.7\n",
"# Slow install (will download torch and cuda), but future proof.\n",
"# !pip install \"moshi==0.2.7\""
]
},
{
@ -78,6 +79,7 @@
"print(\"Generating audio...\")\n",
"\n",
"pcms = []\n",
"\n",
"@torch.no_grad()\n",
"def _on_frame(frame):\n",
" print(\"Step\", len(pcms), end=\"\\r\")\n",