-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_app.bat
More file actions
33 lines (28 loc) · 996 Bytes
/
run_app.bat
File metadata and controls
33 lines (28 loc) · 996 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
@echo off
echo Starting PDF Q&A System...
echo.
echo This will start the application with fixed settings for handling Hebrew PDFs.
echo.
echo If you haven't downloaded models yet, please run download_models.bat first.
echo.
echo If the application crashes, please try these options:
echo 1. Run run_dev.py for a lightweight version:
echo venv\Scripts\python run_dev.py
echo.
echo 2. Use resume_ingest.py to process PDFs in smaller batches:
echo venv\Scripts\python scripts\resume_ingest.py --batch-size 4
echo.
echo Press Ctrl+C to stop the application at any time.
echo.
:: Activate virtual environment
call venv\Scripts\activate
:: Set environment variable to ensure UTF-8 encoding for console output
set PYTHONIOENCODING=utf-8
:: Set memory management variables
set PYTHONMALLOC=debug
set PYTHONFAULTHANDLER=1
:: Run the application
echo Starting server...
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000
:: Deactivate virtual environment when done
call deactivate