forked from ombhojane/FIN-RAG
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStep3_Start.bat
More file actions
37 lines (31 loc) Β· 816 Bytes
/
Copy pathStep3_Start.bat
File metadata and controls
37 lines (31 loc) Β· 816 Bytes
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
@echo off
REM Check if Python is installed
python --version >nul 2>&1
IF ERRORLEVEL 1 (
echo Python is not installed or not added to PATH.
pause
exit /b
)
REM Check if the virtual environment exists
IF NOT EXIST "venv\Scripts\activate" (
echo Virtual environment not found. Please create it first.
pause
exit /b
)
REM Activate the virtual environment
echo Activating virtual environment...
call venv\Scripts\activate
REM Check if app.py exists
IF NOT EXIST "app.py" (
echo app.py not found in the current directory.
pause
exit /b
)
REM Open the default browser to the app's host URL
echo Opening browser to http://127.0.0.1:5000...
start http://127.0.0.1:5000
REM Run app.py
echo Running app.py...
python app.py
REM Pause to keep the terminal open after the app exits
pause