Colab: Less clumsy lt url output

This commit is contained in:
SillyLossy
2023-03-02 21:37:11 +02:00
parent 02b6be2f29
commit fb2fa365b5

View File

@@ -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",