From d816c40e3d578f1a318b9ce6298dc000955ea17a Mon Sep 17 00:00:00 2001 From: Shivam Mehta Date: Fri, 24 May 2024 11:46:03 +0200 Subject: [PATCH] Updating the notebook to adjust to the change --- synthesis.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synthesis.ipynb b/synthesis.ipynb index dfbde30..1e47c53 100644 --- a/synthesis.ipynb +++ b/synthesis.ipynb @@ -19,7 +19,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "148f4bc0-c28e-4670-9a5e-4c7928ab8992", "metadata": {}, "outputs": [ @@ -192,7 +192,7 @@ "source": [ "@torch.inference_mode()\n", "def process_text(text: str):\n", - " x = torch.tensor(intersperse(text_to_sequence(text, ['english_cleaners2']), 0),dtype=torch.long, device=device)[None]\n", + " x = torch.tensor(intersperse(text_to_sequence(text, ['english_cleaners2'])[0], 0),dtype=torch.long, device=device)[None]\n", " x_lengths = torch.tensor([x.shape[-1]],dtype=torch.long, device=device)\n", " x_phones = sequence_to_text(x.squeeze(0).tolist())\n", " return {\n",