2021-06-06 15:02:03 +02:00
|
|
|
@echo off
|
2021-12-22 21:56:57 +01:00
|
|
|
cd /D %~dp0
|
2021-09-18 21:50:23 +02:00
|
|
|
TITLE KoboldAI - Server
|
2021-06-28 22:35:15 +02:00
|
|
|
SET /P M=<loader.settings
|
|
|
|
IF %M%==1 GOTO drivemap
|
|
|
|
IF %M%==2 GOTO subfolder
|
|
|
|
|
|
|
|
:subfolder
|
2021-12-22 21:56:57 +01:00
|
|
|
ECHO Runtime launching in subfolder mode
|
|
|
|
SET TEMP=%~DP0MINICONDA3
|
|
|
|
SET TMP=%~DP0MINICONDA3
|
2021-06-06 15:02:03 +02:00
|
|
|
call miniconda3\condabin\activate
|
2021-08-20 00:37:59 +02:00
|
|
|
python aiserver.py %*
|
2021-06-06 15:02:03 +02:00
|
|
|
cmd /k
|
2021-06-28 22:35:15 +02:00
|
|
|
|
|
|
|
:drivemap
|
2021-12-22 21:56:57 +01:00
|
|
|
ECHO Runtime launching in K: drive mode
|
2021-06-28 22:35:15 +02:00
|
|
|
subst K: miniconda3 >nul
|
2021-12-22 21:56:57 +01:00
|
|
|
SET TEMP=K:\
|
|
|
|
SET TMP=K:\
|
2021-06-28 22:35:15 +02:00
|
|
|
call K:\python\condabin\activate
|
2021-08-20 00:37:59 +02:00
|
|
|
python aiserver.py %*
|
2021-06-28 22:35:15 +02:00
|
|
|
subst K: /D
|
2021-11-24 08:23:08 +01:00
|
|
|
cmd /k
|