-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
21 lines (21 loc) · 798 Bytes
/
Copy pathrun.bat
File metadata and controls
21 lines (21 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
REM ---------------------------------------------------------------------------
REM run.bat - open RagIndex as a local app on Windows.
REM
REM Builds the web UI the first time, then starts the app and opens your browser.
REM Run scripts\setup.bat once beforehand to create the virtual-env and pull the
REM local models. Double-click this file, or run it from a terminal:
REM
REM run.bat open the app
REM run.bat --no-browser serve without opening a browser
REM run.bat --port 8765 pin a port
REM ---------------------------------------------------------------------------
setlocal
cd /d "%~dp0"
if exist ".venv\Scripts\python.exe" (
".venv\Scripts\python.exe" scripts\run.py %*
) else (
python scripts\run.py %*
)
if errorlevel 1 pause
endlocal