Download code/start-preview.cmd from CollinMa/nextgpt-chapter6-report: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/CollinMa/nextgpt-chapter6-report/resolve/main/code/start-preview.cmd
- Command line
-
hf download hf://spaces/CollinMa/nextgpt-chapter6-report/code/start-preview.cmd
-
curl -L -o start-preview.cmd https://huggingface.co/spaces/CollinMa/nextgpt-chapter6-report/resolve/main/code/start-preview.cmd
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 | |