Update index.js
Browse files
index.js
CHANGED
|
@@ -275,7 +275,9 @@ export async function imageTextToText(
|
|
| 275 |
) {
|
| 276 |
throw new Error(`Token ID is not an integer`);
|
| 277 |
} else {
|
| 278 |
-
const decoded = tokenizer.decode([...token_id.data])
|
|
|
|
|
|
|
| 279 |
output += decoded;
|
| 280 |
}
|
| 281 |
}
|
|
|
|
| 275 |
) {
|
| 276 |
throw new Error(`Token ID is not an integer`);
|
| 277 |
} else {
|
| 278 |
+
const decoded = tokenizer.decode([...token_id.data]);
|
| 279 |
+
console.log({decoded});
|
| 280 |
+
|
| 281 |
output += decoded;
|
| 282 |
}
|
| 283 |
}
|