diff --git a/tutorials/asr/asr_adapters/Multi_Task_Adapters.ipynb b/tutorials/asr/asr_adapters/Multi_Task_Adapters.ipynb index 258b002e402f..2485ffaaf89c 100644 --- a/tutorials/asr/asr_adapters/Multi_Task_Adapters.ipynb +++ b/tutorials/asr/asr_adapters/Multi_Task_Adapters.ipynb @@ -433,7 +433,7 @@ "outputs": [], "source": [ "@registered_prompt_format_fn\n", - "def canary2(cuts, tokenizer, inference: bool):\n", + "def canary_custom(cuts, tokenizer, inference: bool):\n", " \"\"\" Users can implement this as needed \"\"\"\n", " raise NotImplementedError()\n", "\n", @@ -449,7 +449,7 @@ }, "outputs": [], "source": [ - "temp = get_prompt_format_fn('canary2')\n", + "temp = get_prompt_format_fn('canary_custom')\n", "temp.__name__" ] }, @@ -549,7 +549,7 @@ "class CanaryPromptFormatterV2(model.prompt.__class__):\n", "\n", " # make sure to provide a new name\n", - " NAME: str = \"canary2\"\n", + " NAME: str = \"canary_custom\"\n", "\n", " # Make any changes as necessary.\n", " # For this demonstration, we will not change anything other than the name" @@ -565,7 +565,7 @@ "outputs": [], "source": [ "# Next, lets update the model's prompt formatter\n", - "model.change_prompt(\"canary2\")" + "model.change_prompt(\"canary_custom\")" ] }, { @@ -577,9 +577,9 @@ "source": [ "---\n", "\n", - "We have now successfully changed the prompt format to `canary2`.\n", + "We have now successfully changed the prompt format to `canary_custom`.\n", "\n", - "**Note**: It is important to know that when changing the prompt format, the name of the new prompt format class (`canary2` in this case) **has to match** the name of the prompt function registered with `@registered_prompt_format_fn`!" + "**Note**: It is important to know that when changing the prompt format, the name of the new prompt format class (`canary_custom` in this case) **has to match** the name of the prompt function registered with `@registered_prompt_format_fn`!" ] }, {