Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions Colab_RealtimeVoiceChanger.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@
"print(f\"{Fore.GREEN}> Finished unpacking!{Style.RESET_ALL}\")\n",
"!rm -rf {LINUX_PREBUILT}.*\n",
"\n",
"!mv {REAL2} ML_Program\n",
"!mv ML_Program/{REAL2} ML_Program/ML_Program\n",
"\n",
"\n",
"%cd /content\n",
"\n",
"if Use_Drive and not os.path.exists('/content/drive'):\n",
Expand All @@ -112,7 +116,6 @@
" !mkdir -p /content/drive/MyDrive/$REAL1/server/model_dir\n",
" !mkdir -p /content/drive/MyDrive/$REAL1/server/pretrain\n",
"\n",
"%cd $REAL2\n",
"\n",
"if Use_Drive and not os.path.exists('/content/drive'):\n",
" drive.mount('/content/drive')\n",
Expand All @@ -124,8 +127,8 @@
"\n",
" time.sleep(5)\n",
"\n",
" os.symlink(f\"/content/drive/MyDrive/{REAL1}/server/model_dir\", f\"/content/{REAL2}/model_dir\", True)\n",
" os.symlink(f\"/content/drive/MyDrive/{REAL2}/server/pretrain\", f\"/content/{REAL2}/pretrain\", True)\n",
" os.symlink(f\"/content/drive/MyDrive/{REAL1}/server/model_dir\", f\"/content/ML_Program/model_dir\", True)\n",
" os.symlink(f\"/content/drive/MyDrive/{REAL2}/server/pretrain\", f\"/content/ML_Program/pretrain\", True)\n",
"\n",
"print(f\"{Fore.GREEN}> Successfully downloaded and unpacked the binary!{Style.RESET_ALL}\")\n",
"\n",
Expand All @@ -146,7 +149,7 @@
"# @title **[2]** Set server configuration\n",
"# @markdown This cell will set the server configuration.\n",
"\n",
"%cd /content/$REAL2\n",
"%cd /content/ML_Program\n",
"\n",
"from dotenv import set_key\n",
"\n",
Expand Down Expand Up @@ -247,7 +250,7 @@
"\n",
" threading.Thread(target=wait_for_server, daemon=True).start()\n",
"\n",
" !./$REAL2\n",
" !./ML_Program\n",
"\n",
" if TUNNEL == \"NGROK\":\n",
" ngrok.disconnect(ngrokConnection.public_url)\n",
Expand Down Expand Up @@ -276,4 +279,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
Loading