fixed toggling of models in the inference notebook.

This commit is contained in:
Mateo Cedillo
2023-06-08 10:12:02 -05:00
parent 218efcb102
commit b97f957ab5
+4 -3
View File
@@ -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",