-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.bat
42 lines (32 loc) · 1.02 KB
/
run.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
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
if not exist "venv" (
echo Virtual environment not found. Creating...
python -m venv venv
if errorlevel 1 (
echo Failed to create virtual environment. Exiting.
exit /b 1
)
if exist "requirements.txt" (
echo Installing requirements from requirements.txt...
venv\Scripts\activate
python -m pip install -r requirements.txt --disable-pip-version-check
if errorlevel 1 (
echo Failed to install requirements. Exiting.
exit /b 1
)
)
streamlit run appd-extractor.py
) else (
echo Activating the virtual environment...
venv\Scripts\activate
if exist "requirements.txt" (
echo Installing any missing requirements from requirements.txt...
venv\Scripts\activate
python -m pip install -r requirements.txt --disable-pip-version-check
if errorlevel 1 (
echo Failed to install requirements. Exiting.
exit /b 1
)
)
streamlit run appd-extractor.py
)