mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Colab debugging
This commit is contained in:
@ -173,10 +173,14 @@
|
|||||||
"!git clone https://github.com/SillyLossy/TavernAI-extras\n",
|
"!git clone https://github.com/SillyLossy/TavernAI-extras\n",
|
||||||
"%cd TavernAI-extras\n",
|
"%cd TavernAI-extras\n",
|
||||||
"!pip install -r requirements.txt\n",
|
"!pip install -r requirements.txt\n",
|
||||||
"extras_process = subprocess.Popen(['python', '/TavernAI-extras/server.py', '--cpu', ShareParam], stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd='/TavernAI-extras')\n",
|
"extras_process = subprocess.Popen(['python', '/TavernAI-extras/server.py', '--cpu', ShareParam, ModulesParam], stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd='/TavernAI-extras')\n",
|
||||||
|
"print('processId:', extras_process.pid)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"while True:\n",
|
"while True:\n",
|
||||||
" line = extras_process.stdout.readline().decode().strip()\n",
|
" line = extras_process.stdout.readline().decode().strip()\n",
|
||||||
|
" err_line = extras_process.stderr.readline().decode().strip()\n",
|
||||||
|
" if err_line:\n",
|
||||||
|
" print(err_line)\n",
|
||||||
" if \"Running on \" in line and Provider != \"Cloudflare\":\n",
|
" if \"Running on \" in line and Provider != \"Cloudflare\":\n",
|
||||||
" print(\"TavernAI Extras URL:\")\n",
|
" print(\"TavernAI Extras URL:\")\n",
|
||||||
" !lt --port 5100\n",
|
" !lt --port 5100\n",
|
||||||
@ -189,6 +193,7 @@
|
|||||||
" print('')\n",
|
" print('')\n",
|
||||||
" break\n",
|
" break\n",
|
||||||
" if not line:\n",
|
" if not line:\n",
|
||||||
|
" print('breaking on line')\n",
|
||||||
" break\n",
|
" break\n",
|
||||||
" print(line)\n",
|
" print(line)\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Reference in New Issue
Block a user