Spaces:
Running on Zero
Running on Zero
Download scripts/launch.bat from Lvvbaaal/legalgpt-api: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/spaces/Lvvbaaal/legalgpt-api/resolve/main/scripts/launch.bat
- Command line
-
hf download hf://spaces/Lvvbaaal/legalgpt-api/scripts/launch.bat
-
curl -L -o launch.bat https://huggingface.co/spaces/Lvvbaaal/legalgpt-api/resolve/main/scripts/launch.bat
1.18 kB
| @echo off | |
| title SaulGPT | |
| cd /d "%~dp0.." | |
| chcp 65001 >nul | |
| set PYTHONIOENCODING=utf-8 | |
| rem GROQ_API_KEY is loaded from .env file in the project root by python-dotenv | |
| echo ================================================== | |
| echo SaulGPT - Starting All Services | |
| echo ================================================== | |
| echo. | |
| set "VENV_PYTHON=%~dp0..\.venv\Scripts\python.exe" | |
| set "BACKEND_DIR=%~dp0..\backend" | |
| echo [1/2] Starting Backend API... | |
| start "SaulGPT-Backend" cmd /k ""%VENV_PYTHON%" "%BACKEND_DIR%\api_server.py"" | |
| timeout /t 4 /nobreak >nul | |
| echo [2/2] Starting Frontend... | |
| start "SaulGPT-Frontend" cmd /k "cd /d "%~dp0..\saulgpt-ui" && npm run dev" | |
| timeout /t 3 /nobreak >nul | |
| echo Opening browser... | |
| start http://localhost:5173 | |
| echo. | |
| echo ================================================== | |
| echo SaulGPT is running! | |
| echo ================================================== | |
| echo. | |
| echo Frontend: http://localhost:5173 | |
| echo Backend: http://localhost:8000 | |
| echo API Docs: http://localhost:8000/docs | |
| echo. | |
| echo Close the terminal windows to stop the app. | |
| echo Press any key to close this window... | |
| echo ================================================== | |
| pause >nul |