Auto download teseract models
All checks were successful
Publish Library / Build NPM Project (push) Successful in 1m4s
Publish Library / Tag Version (push) Successful in 10s

This commit is contained in:
2025-12-22 13:48:53 -05:00
parent ca5a2334bb
commit 98dd0bb323
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@ztimson/ai-utils",
"version": "0.2.2",
"version": "0.2.3",
"description": "AI Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@@ -15,7 +15,7 @@ export class Vision {
return {
abort: () => { worker?.terminate(); },
response: new Promise(async res => {
worker = await createWorker('eng', 1, {langPath: this.ai.options.path});
worker = await createWorker('eng', 1, {cachePath: this.ai.options.path});
const {data} = await worker.recognize(path);
await worker.terminate();
res(data.text.trim() || null);