Initial commit: Image moderation service using local vision LLM

This commit is contained in:
2026-03-29 21:57:57 -04:00
commit 445970b7d4
9 changed files with 2888 additions and 0 deletions

27
service-install.js Normal file
View File

@@ -0,0 +1,27 @@
const Service = require("node-windows").Service;
const path = require("path");
const svc = new Service({
name: "Image Moderation Service",
description: "Standalone image moderation service using local vision AI",
script: path.join(__dirname, "dist", "server.js"),
nodeOptions: [],
env: [
{ name: "PATH", value: process.env.PATH },
],
});
svc.on("install", () => {
console.log("Service installed. Starting...");
svc.start();
});
svc.on("start", () => {
console.log("Service started!");
});
svc.on("error", (err) => {
console.error("Error:", err);
});
svc.install();