File size: 526 Bytes
15c46ce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | @echo off
setlocal
cd /d "%~dp0"
if not exist ".runtime\python.exe" (
echo Python runtime not found. Install with:
echo powershell -NoProfile -File scripts\start_cpu_preview.ps1 -Install
pause
exit /b 1
)
set CUDA_VISIBLE_DEVICES=-1
set NEXTGPT_AUTO_PREPARE=0
set NEXTGPT_HOST=127.0.0.1
set PYTHONUNBUFFERED=1
if not defined PORT set PORT=7860
echo CPU preview only. Model inference is unavailable in this mode.
echo Open http://127.0.0.1:%PORT% and press Ctrl+C to stop.
".runtime\python.exe" -X utf8 app.py
endlocal
|