-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
45 lines (38 loc) Β· 1.15 KB
/
start.bat
File metadata and controls
45 lines (38 loc) Β· 1.15 KB
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
42
43
44
45
@echo off
REM SMS Spam Detection Application Startup Script for Windows
echo π Starting SMS Spam Detection Application
echo ==========================================
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo β Python is not installed. Please install Python 3.7 or higher.
pause
exit /b 1
)
REM Check if pip is installed
pip --version >nul 2>&1
if %errorlevel% neq 0 (
echo β pip is not installed. Please install pip.
pause
exit /b 1
)
REM Install dependencies if requirements.txt exists
if exist "requirements.txt" (
echo π¦ Installing dependencies...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo β Failed to install dependencies. Please check your Python environment.
pause
exit /b 1
)
echo β
Dependencies installed successfully
) else (
echo β οΈ requirements.txt not found. Skipping dependency installation.
)
REM Start the Flask application
echo π Starting Flask application...
echo π Application will be available at: http://localhost:5001
echo π Press Ctrl+C to stop the server
echo.
python app.py
pause