mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2
This commit is contained in:
@@ -800,9 +800,9 @@ class system_settings(settings):
|
|||||||
if os.path.exists("./KoboldAI-Horde"):
|
if os.path.exists("./KoboldAI-Horde"):
|
||||||
if value == True:
|
if value == True:
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import random
|
||||||
|
random.seed()
|
||||||
if os.path.exists('./KoboldAI-Horde/venv/scripts/python.exe'):
|
if os.path.exists('./KoboldAI-Horde/venv/scripts/python.exe'):
|
||||||
import random
|
|
||||||
random.seed()
|
|
||||||
self._horde_pid = subprocess.Popen(['./KoboldAI-Horde/venv/scripts/python.exe', './KoboldAI-Horde/bridge.py',
|
self._horde_pid = subprocess.Popen(['./KoboldAI-Horde/venv/scripts/python.exe', './KoboldAI-Horde/bridge.py',
|
||||||
'--username', '{}'.format(random.randint(-1000000000000, 1000000000000)), '--password', '{}'.format(random.randint(-1000000000000, 1000000000000)),
|
'--username', '{}'.format(random.randint(-1000000000000, 1000000000000)), '--password', '{}'.format(random.randint(-1000000000000, 1000000000000)),
|
||||||
'--kai_name', '{}'.format(random.randint(-1000000000000, 1000000000000)), '--kai_url', 'http://127.0.0.1:{}'.format(self.port), '--cluster_url', "http://koboldai.net"])
|
'--kai_name', '{}'.format(random.randint(-1000000000000, 1000000000000)), '--kai_url', 'http://127.0.0.1:{}'.format(self.port), '--cluster_url', "http://koboldai.net"])
|
||||||
|
Reference in New Issue
Block a user