-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
35 lines (30 loc) · 746 Bytes
/
run.bat
File metadata and controls
35 lines (30 loc) · 746 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
@echo off
echo Starting PDF Text Cleaner...
echo.
REM Check if virtual environment exists
if not exist "venv" (
echo Virtual environment not found. Creating one...
python -m venv venv
echo.
)
REM Activate virtual environment
call venv\Scripts\activate
REM Check if .env exists
if not exist ".env" (
echo WARNING: .env file not found!
echo Please copy .env.example to .env and add your OpenAI API key.
echo.
pause
exit /b 1
)
REM Install/update dependencies
echo Installing dependencies...
pip install -q -r requirements.txt
REM Start the application
echo.
echo Starting the application...
echo Open your browser and go to: http://localhost:5000
echo.
echo Press Ctrl+C to stop the server.
echo.
python app.py