Update index.js
Browse files
index.js
CHANGED
@@ -65,8 +65,7 @@ async function parse(img, txt) {
|
|
65 |
imageContainer.style.backgroundImage = `url(${img})`;
|
66 |
status.textContent = 'Analysing...';
|
67 |
const output = await imageTextToText(img, txt);
|
68 |
-
status.textContent =
|
69 |
-
imageContainer.textContent = output;
|
70 |
}
|
71 |
|
72 |
async function imageTextToText(imagePath, query, vision = true) {
|
|
|
65 |
imageContainer.style.backgroundImage = `url(${img})`;
|
66 |
status.textContent = 'Analysing...';
|
67 |
const output = await imageTextToText(img, txt);
|
68 |
+
status.textContent = output;
|
|
|
69 |
}
|
70 |
|
71 |
async function imageTextToText(imagePath, query, vision = true) {
|