nextgpt-chapter6-report / code /start-preview.cmd
CollinMa's picture
Publish NExT-GPT course code and actual execution records
15c46ce verified
Raw History Blame Contribute Delete
526 Bytes
@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