-
Notifications
You must be signed in to change notification settings - Fork 39
/
horde-bridge.cmd
35 lines (27 loc) · 791 Bytes
/
horde-bridge.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
cd /d %~dp0
: This first call to runtime activates the environment for the rest of the script
call runtime python -s -m pip -V
call python -s -m pip uninstall hordelib
call python -s -m pip install horde_sdk~=0.14.11 horde_model_reference~=0.9.0 horde_engine~=2.15.3 horde_safety~=0.2.3 -U
if %ERRORLEVEL% NEQ 0 (
echo "Please run update-runtime.cmd."
GOTO END
)
call python -s -m pip check
if %ERRORLEVEL% NEQ 0 (
echo "Please run update-runtime.cmd."
GOTO END
)
:DOWNLOAD
call python -s download_models.py
if %ERRORLEVEL% NEQ 0 GOTO ABORT
echo "Model Download OK. Starting worker..."
call python -s run_worker.py %*
GOTO END
:ABORT
echo "download_models.py exited with error code. Aborting"
:END
call micromamba deactivate >nul
call deactivate >nul
pause