diff --git a/colab_webui.ipynb b/colab_webui.ipynb index fd7374ba..6dca0b25 100644 --- a/colab_webui.ipynb +++ b/colab_webui.ipynb @@ -33,7 +33,7 @@ "metadata": {}, "outputs": [], "source": [ - "%%writefile setup.sh\n", + "%%writefile /content/setup.sh\n", "set -e\n", "\n", "if command -v conda >/dev/null 2>&1; then\n", @@ -80,9 +80,7 @@ "metadata": {}, "outputs": [], "source": [ - "%cd -q /content\n", - "!bash setup.sh\n", - "%cd -q /content/GPT-SoVITS" + "!cd /content && bash setup.sh" ] }, { @@ -101,9 +99,7 @@ }, "outputs": [], "source": [ - "# @title launch WebUI 启动WebUI\n", - "%cd -q /content/GPT-SoVITS\n", - "!conda activate GPT-SoVITS && pip install ipykernel && export is_share=False && python webui.py" + "!conda activate GPT-SoVITS && pip install ipykernel && export is_share=True && cd /content/GPT-SoVITS && python webui.py" ] } ],