1 Star 0 Fork 1

Sean1832/GPT-Brain

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update.bat 931 Bytes
一键复制 编辑 原始数据 按行查看 历史
Sean1832 提交于 2023-03-04 00:25 +08:00 . chore: remove pause
@echo off
echo Activating Virtural environment!
call .\venv\Scripts\activate
echo Checking library updates...
set "REQUIREMENTS=requirements.txt"
set "LAST_MODIFIED=requirements.temp"
rem Check if requirements.txt file exists
if not exist %REQUIREMENTS% (
echo "Error: requirements.txt not found"
exit /b 1
)
rem Check if last_modified.txt file exists
if not exist %LAST_MODIFIED% (
echo 0>"%LAST_MODIFIED%"
)
rem Check if requirements.txt file has been modified
for %%a in (%REQUIREMENTS%) do set "mod_date=%%~ta"
set /p last_mod_date=<%LAST_MODIFIED%
if "%mod_date%" neq "%last_mod_date%" (
pip3 install -r %REQUIREMENTS%
echo %mod_date%>"%LAST_MODIFIED%"
cls
echo "Requirements file has been modified. Updated complete!"
) else (
echo "Requirements file has not been modified. Skipping update."
)
rem copy example prompt to user folder without overwrite
xcopy "example_prompt\*.*" ".user\prompt" /I /E /Y /D
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/sean1832/GPT-Brain.git
git@gitee.com:sean1832/GPT-Brain.git
sean1832
GPT-Brain
GPT-Brain
main

搜索帮助