Update index.js
Browse files
index.js
CHANGED
@@ -131,7 +131,7 @@ async function handleQuery(imageUrl, query) {
|
|
131 |
try {
|
132 |
status.textContent = 'Analyzing...';
|
133 |
|
134 |
-
const result = await imageTextToText(imageUrl, query,
|
135 |
output.textContent = out;
|
136 |
});
|
137 |
} catch (err) {
|
|
|
131 |
try {
|
132 |
status.textContent = 'Analyzing...';
|
133 |
|
134 |
+
const result = await imageTextToText(imageUrl, query, (out) => {
|
135 |
output.textContent = out;
|
136 |
});
|
137 |
} catch (err) {
|