forked from alphatoasterous/MVSEP-MDX23-Colab_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.bat
29 lines (23 loc) · 840 Bytes
/
start.bat
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
:: This script was made for using this repository standalone. Please be aware that it is not the intended way of using
:: this software and additional fiddling may be required for making this work.
@echo off
:: Define paths
set "VIRTUALENV_DIR=.venv"
set "REQUIREMENTS_FILE=requirements_standalone.txt"
set "WEBUI_SCRIPT=webui.py"
:: Check if virtualenv directory exists
if exist "%VIRTUALENV_DIR%" (
echo Virtualenv directory exists. Skipping dependency installation.
) else (
echo Creating virtualenv...
python -m virtualenv "%VIRTUALENV_DIR%"
echo Installing dependencies...
%VIRTUALENV_DIR%\Scripts\pip.exe install -r "%REQUIREMENTS_FILE%"
)
:: Activate virtualenv
call "%VIRTUALENV_DIR%\Scripts\activate"
:: Run python script
echo Starting Web UI...
python "%WEBUI_SCRIPT%"
:: Deactivate virtualenv
deactivate