GPT-Brain/console_app/run-brain.bat
2023-02-10 01:46:55 +11:00

27 lines
499 B
Batchfile

@echo off
cd..
echo Activating Virtural environment...
call .\venv\Scripts\activate
rem checking if input.txt is updated
python console_app\check_update.py
setlocal enabledelayedexpansion
set "tempFile=.user\input_sig.temp"
for /f "usebackq delims=" %%a in ("%tempFile%") do (
set "tempValue=%%a"
)
if "%tempValue%" == "not updated" (
goto end
) else (
call batch-programs\run-build-brain.bat
cls
echo Brain updated!
)
:end
echo running brain...
python console_app\brain.py