From 99ad1f3ce586747534f87edf6072d9054a69703e Mon Sep 17 00:00:00 2001 From: ChanningWang2018 <40551910+ChanningWang2018@users.noreply.github.com> Date: Sat, 17 Feb 2024 20:19:10 +0800 Subject: [PATCH] Fix Issue with Share Link Generation in colab_webui.ipynb Modified the way we retrieve the "is_share" environment variable. --- colab_webui.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/colab_webui.ipynb b/colab_webui.ipynb index 21722da..79717cc 100644 --- a/colab_webui.ipynb +++ b/colab_webui.ipynb @@ -82,7 +82,7 @@ "source": [ "# @title launch WebUI 启动WebUI\n", "!/usr/local/bin/pip install ipykernel\n", - "!sed -i '9s/False/True/' /content/GPT-SoVITS/config.py\n", + "!sed -i 's/os.environ.get("is_share","False")/os.environ.get("is_share","True")/g' /content/GPT-SoVITS/config.py\n", "%cd /content/GPT-SoVITS/\n", "!/usr/local/bin/python webui.py" ], @@ -93,4 +93,4 @@ "outputs": [] } ] -} \ No newline at end of file +}