[Editor] Add the possibility to query some ML stuff to guess an alt text for an image

It's only for an experimental purpose.
This commit is contained in:
Calixte Denizet 2024-02-20 09:49:20 +01:00
parent 99fa713fba
commit 46416bb131
11 changed files with 102 additions and 6 deletions

View file

@ -143,6 +143,11 @@ const defaultOptions = {
value: typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING"),
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
enableML: {
/** @type {boolean} */
value: false,
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
},
enablePermissions: {
/** @type {boolean} */
value: false,