mirror of
https://github.com/sean1832/GPT-Brain
synced 2024-11-18 21:25:53 +00:00
27 lines
499 B
Batchfile
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 |