Colab を使用して作成されました

This commit is contained in:
w-okada 2024-08-20 09:51:22 +09:00
parent cccac62a5f
commit 0fbcd52729

View File

@ -203,7 +203,7 @@
"# @markdown ### Options:\n",
"ClearConsole = True # @param {type:\"boolean\"}\n",
"Play_Notification = True # @param {type:\"boolean\"}\n",
"NgrokToken = \"\" # @param {type:\"string\"}\n",
"NgrokToken = \"2iIApCAGO7wODHEUtZPDjbFq2bT_5H9VfYRx8oQBaXUT7EEH9\" # @param {type:\"string\"}\n",
"\n",
"PORT=8003\n",
"NGROK_URL_FILE = \"ngrok_url.txt\"\n",
@ -217,8 +217,13 @@
"from google.colab.output import eval_js\n",
"\n",
"\n",
"\n",
"\n",
"if mode == \"elf\":\n",
" # !LD_LIBRARY_PATH=/usr/lib64-nvidia:/usr/lib/x86_64-linux-gnu ./vcclient_latest_for_colab cui --port {PORT} --no_cui true &\n",
" if NgrokToken ==\"\":\n",
" get_ipython().system_raw(f'LD_LIBRARY_PATH=/usr/lib64-nvidia:/usr/lib/x86_64-linux-gnu ./vcclient_latest_for_colab cui --port {PORT} --no_cui true --https False >{LOG_FILE} 2>&1 &')\n",
" else:\n",
" get_ipython().system_raw(f'LD_LIBRARY_PATH=/usr/lib64-nvidia:/usr/lib/x86_64-linux-gnu ./vcclient_latest_for_colab cui --port {PORT} --no_cui true --https False --ngrok_token {NgrokToken} --ngrok_proxy_url_file {NGROK_URL_FILE} >{LOG_FILE} 2>&1 &')\n",
"elif mode == \"zip\":\n",
" !LD_LIBRARY_PATH=/usr/lib64-nvidia:/usr/lib/x86_64-linux-gnu ./main cui --port {PORT} --no_cui true &\n",
@ -266,6 +271,15 @@
"wait_for_server()\n"
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "CRZALk96MxuH"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
@ -287,7 +301,7 @@
"colab": {
"provenance": [],
"gpuType": "T4",
"authorship_tag": "ABX9TyOQ2VZFXCzGQTAvv2SwjJz1",
"authorship_tag": "ABX9TyM285GMdZ0Pq8hmQU8sArod",
"include_colab_link": true
},
"kernelspec": {