print git commit revision when launching webui
This commit is contained in:
parent
051e9195f1
commit
e4f080f61a
1 changed files with 4 additions and 2 deletions
|
@ -37,13 +37,15 @@ goto :show_stdout_stderr
|
||||||
set PYTHON="%~dp0%VENV_DIR%\Scripts\Python.exe"
|
set PYTHON="%~dp0%VENV_DIR%\Scripts\Python.exe"
|
||||||
%PYTHON% --version
|
%PYTHON% --version
|
||||||
echo venv %PYTHON%
|
echo venv %PYTHON%
|
||||||
goto :install_torch
|
goto :print_commit
|
||||||
|
|
||||||
:skip_venv
|
:skip_venv
|
||||||
%PYTHON% --version
|
%PYTHON% --version
|
||||||
|
|
||||||
:install_torch
|
:print_commit
|
||||||
|
%GIT% rev-parse HEAD
|
||||||
|
|
||||||
|
:install_torch
|
||||||
%PYTHON% -c "import torch" >tmp/stdout.txt 2>tmp/stderr.txt
|
%PYTHON% -c "import torch" >tmp/stdout.txt 2>tmp/stderr.txt
|
||||||
if %ERRORLEVEL% == 0 goto :check_gpu
|
if %ERRORLEVEL% == 0 goto :check_gpu
|
||||||
echo Installing torch...
|
echo Installing torch...
|
||||||
|
|
Loading…
Reference in a new issue