mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-04-28 18:31:19 +00:00
Colab: Less clumsy lt url output
This commit is contained in:
@@ -188,7 +188,6 @@
|
||||
"while True:\n",
|
||||
" line = extras_process.stdout.readline().decode().strip()\n",
|
||||
" if \"Running on \" in line and Provider != \"Cloudflare\":\n",
|
||||
" print(\"TavernAI Extras URL:\")\n",
|
||||
" break\n",
|
||||
" if \"Running on \" in line and Provider == \"Cloudflare\" and \"trycloudflare.com\" in line:\n",
|
||||
" print(\"TavernAI Extras URL:\")\n",
|
||||
@@ -208,7 +207,11 @@
|
||||
"while True:\n",
|
||||
" if (os.path.getsize('./extras.out') > 0):\n",
|
||||
" with open('./extras.out', 'r') as f:\n",
|
||||
" print(f.readlines())\n",
|
||||
" lines = f.readlines()\n",
|
||||
" for x in range(len(lines)):\n",
|
||||
" if ('your url is: ' in lines[x]):\n",
|
||||
" print('TavernAI Extras URL:')\n",
|
||||
" print(lines[x].split('your url is: ')[1])\n",
|
||||
" break\n",
|
||||
" if (os.path.getsize('./extras.err') > 0):\n",
|
||||
" with open('./extras.err', 'r') as f:\n",
|
||||
|
||||
Reference in New Issue
Block a user