A small local AI web console. The server serves the browser interface and runs chat requests in background threads from the same process.
Windows:
run.batmacOS/Linux:
sh run.shDirect Python:
python3 app.pyThe app binds to host=0.0.0.0 by default and prints the URLs it is running on.
The server starts Qwen/Qwen2.5-3B-Instruct with Hugging Face Transformers. On first run, the launch script downloads realisticvision5.1.safetensors automatically and verifies its SHA256 before image generation uses it.
Optional environment variables:
PORT: server port, default5001HOST: bind host, default0.0.0.0AI_MODEL: text model, defaultQwen/Qwen2.5-3B-InstructIMAGE_MODEL_PATH: image checkpoint, defaultrealisticvision5.1.safetensorsIMAGE_MODEL_URL: image checkpoint download URLIMAGE_PIPELINE: image pipeline type, defaultsdfor Realistic Vision 5.1IMAGE_STEPS: image generation steps, default8IMAGE_SCHEDULER: image scheduler, defaultdpmUNLOAD_TEXT_BEFORE_IMAGE: free text-model VRAM before image generation, default1LOAD_MODEL_ON_START: preload the text model, default1LOAD_IMAGE_ON_START: preload the image model, default0
The server binds to host=0.0.0.0, prints the URLs it is running on, serves the web UI itself, and runs the local AI jobs in the same process.