Rebranding of Extras project

This commit is contained in:
SillyLossy
2023-05-09 12:33:16 +03:00
parent 0b37c8bb2a
commit b93bdc4876
3 changed files with 8 additions and 8 deletions

View File

@ -7,7 +7,7 @@
"source": [ "source": [
"**Links**<br>\n", "**Links**<br>\n",
"SillyTavern GitHub: https://github.com/Cohee1207/SillyTavern<br>\n", "SillyTavern GitHub: https://github.com/Cohee1207/SillyTavern<br>\n",
"Extensions API GitHub: https://github.com/Cohee1207/TavernAI-extras/<br>\n", "Extensions API GitHub: https://github.com/Cohee1207/SillyTavern-extras/<br>\n",
"SillyTavern community Discord (support and discussion): https://discord.gg/RZdyAEUPvj<br>\n", "SillyTavern community Discord (support and discussion): https://discord.gg/RZdyAEUPvj<br>\n",
"Contact the maintainer directly: Cohee#1207" "Contact the maintainer directly: Cohee#1207"
] ]
@ -241,7 +241,7 @@
"\n", "\n",
"\n", "\n",
"# ---\n", "# ---\n",
"# TavernAI extras\n", "# SillyTavern extras\n",
"import globals\n", "import globals\n",
"globals.extras_url = '(disabled)'\n", "globals.extras_url = '(disabled)'\n",
"globals.params = []\n", "globals.params = []\n",
@ -264,11 +264,11 @@
"if UseExtrasExtensions:\n", "if UseExtrasExtensions:\n",
" def cloneExtras():\n", " def cloneExtras():\n",
" %cd /\n", " %cd /\n",
" !git clone https://github.com/Cohee1207/TavernAI-extras\n", " !git clone https://github.com/Cohee1207/SillyTavern-extras\n",
" ii.addTask('clone extras', cloneExtras)\n", " ii.addTask('clone extras', cloneExtras)\n",
"\n", "\n",
" def installRequirements():\n", " def installRequirements():\n",
" %cd /TavernAI-extras\n", " %cd /SillyTavern-extras\n",
" !npm install -g localtunnel\n", " !npm install -g localtunnel\n",
" !pip install -r requirements.txt\n", " !pip install -r requirements.txt\n",
" !pip install tensorflow==2.11\n", " !pip install tensorflow==2.11\n",

View File

@ -7,7 +7,7 @@ def runServer():
cmd = f"python server.py {' '.join(globals.params)}" cmd = f"python server.py {' '.join(globals.params)}"
print(cmd) print(cmd)
extras_process = subprocess.Popen( extras_process = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd='/TavernAI-extras', shell=True) cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd='/SillyTavern-extras', shell=True)
print('processId:', extras_process.pid) print('processId:', extras_process.pid)
while True: while True:
line = extras_process.stdout.readline().decode().strip() line = extras_process.stdout.readline().decode().strip()
@ -30,7 +30,7 @@ def extractUrl():
lines = f.readlines() lines = f.readlines()
for x in range(len(lines)): for x in range(len(lines)):
if ('your url is: ' in lines[x]): if ('your url is: ' in lines[x]):
print('TavernAI Extensions URL:') print('SillyTavern Extensions URL:')
globals.extras_url = lines[x].split('your url is: ')[1] globals.extras_url = lines[x].split('your url is: ')[1]
print(globals.extras_url) print(globals.extras_url)
break break

View File

@ -1632,8 +1632,8 @@
<div id="rm_extensions_block" class="drawer-content closedDrawer"> <div id="rm_extensions_block" class="drawer-content closedDrawer">
<div class="extensions_block"> <div class="extensions_block">
<h3>Extensions API: <h3>Extensions API:
<a target="_blank" href="https://github.com/SillyLossy/TavernAI-extras"> <a target="_blank" href="https://github.com/Cohee1207/SillyTavern-extras">
TavernAI-extras SillyTavern-extras
</a> </a>
</h3> </h3>
<input id="extensions_url" type="text" class="text_pole" maxlength="250" /> <input id="extensions_url" type="text" class="text_pole" maxlength="250" />