pdufour commited on
Commit
f28c74b
1 Parent(s): 490fed9

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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, function cb(out) {
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) {