From b97f957ab52b621c778a10b9e531bd4fc18598dc Mon Sep 17 00:00:00 2001 From: Mateo Cedillo <54605382+rmcpantoja@users.noreply.github.com> Date: Thu, 8 Jun 2023 10:12:02 -0500 Subject: [PATCH] fixed toggling of models in the inference notebook. --- notebooks/piper_inference_(ONNX).ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/notebooks/piper_inference_(ONNX).ipynb b/notebooks/piper_inference_(ONNX).ipynb index be48807..f387d2f 100644 --- a/notebooks/piper_inference_(ONNX).ipynb +++ b/notebooks/piper_inference_(ONNX).ipynb @@ -4,7 +4,7 @@ "metadata": { "colab": { "provenance": [], - "authorship_tag": "ABX9TyPUlEPUiRIAfFt3VCxArrAD", + "authorship_tag": "ABX9TyMOMZhyZzFXCBGByVHUJt9Q", "include_colab_link": true }, "kernelspec": { @@ -62,7 +62,7 @@ "#@markdown ---\n", "\n", "#@markdown #### Please select your language:\n", - "lang_select = \"Spanish\" #@param [\"English\", \"Spanish\"]\n", + "lang_select = \"English\" #@param [\"English\", \"Spanish\"]\n", "if lang_select == \"English\":\n", " lang = \"en\"\n", "elif lang_select == \"Spanish\":\n", @@ -111,7 +111,7 @@ "%cd /content/piper/src/python\n", "import os\n", "#@markdown #### ID or link of the voice package (tar.gz format):\n", - "package_url_or_id = \"https://github.com/rhasspy/piper/releases/download/v0.0.2/voice-de-thorsten-low.tar.gz\" #@param {type:\"string\"}\n", + "package_url_or_id = \"\" #@param {type:\"string\"}\n", "#@markdown ---\n", "print(\"Downloading voice package...\")\n", "if enhanced_accessibility:\n", @@ -192,6 +192,7 @@ " models_path = \"/content/piper/src/python\"\n", " logging.basicConfig(level=logging.DEBUG)\n", " sess_options = onnxruntime.SessionOptions()\n", + " model = None\n", " onnx_models = detect_onnx_models(models_path)\n", " speaker_selection = widgets.Dropdown(\n", " options=[],\n",