why dont it work 😭
This commit is contained in:
parent
62c5225754
commit
30e20cb683
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "12.118.1-calc.rc.4.5",
|
"version": "12.118.1-calc.rc.4.6",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -152,10 +152,10 @@ export default defineComponent({
|
||||||
await worker.initialize('eng');
|
await worker.initialize('eng');
|
||||||
const { data: { text } } = await worker.recognize(imgurl);
|
const { data: { text } } = await worker.recognize(imgurl);
|
||||||
console.log(text);
|
console.log(text);
|
||||||
document.getElementById('recognized-text').innerText = text;
|
// document.getElementById('recognized-text').innerText = text;
|
||||||
// const allowedLength = 512 - this.inputValue.length;
|
// const allowedLength = 512 - this.inputValue.length;
|
||||||
// this.inputValue += text.slice(0, allowedLength);
|
// this.inputValue += text.slice(0, allowedLength);
|
||||||
// await worker.terminate();
|
await worker.terminate();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue