import { createRuntime } from "./runtime";
import { InferenceWorkerHost } from "./inference-worker";

const modelBaseUrl = chrome.runtime.getURL("models/toxicity/");
const inferenceWorker = new InferenceWorkerHost(() => new Worker(chrome.runtime.getURL("inference.js"), { type: "module" }), modelBaseUrl);

createRuntime((requests) => inferenceWorker.run(requests));
