Update index.js
Browse files
index.js
CHANGED
@@ -108,19 +108,13 @@ export function float16ToInt64(float16Value) {
|
|
108 |
return BigInt(Math.round(value));
|
109 |
}
|
110 |
|
111 |
-
// async function parse(img, txt) {
|
112 |
-
// imageContainer.innerHTML = '';
|
113 |
-
// imageContainer.style.backgroundImage = `url(${img})`;
|
114 |
-
// status.textContent = 'Analysing...';
|
115 |
-
// const output = await imageTextToText(img, txt);
|
116 |
-
// status.textContent = output;
|
117 |
-
// }
|
118 |
|
119 |
async function handleQuery(imageUrl, query) {
|
120 |
if (!imageUrl || !query.trim()) {
|
121 |
status.textContent = 'Please provide both an image and a prompt';
|
122 |
return;
|
123 |
}
|
|
|
124 |
|
125 |
try {
|
126 |
status.textContent = 'Analyzing...';
|
|
|
108 |
return BigInt(Math.round(value));
|
109 |
}
|
110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
|
112 |
async function handleQuery(imageUrl, query) {
|
113 |
if (!imageUrl || !query.trim()) {
|
114 |
status.textContent = 'Please provide both an image and a prompt';
|
115 |
return;
|
116 |
}
|
117 |
+
cnosole.log('Analyzing...');
|
118 |
|
119 |
try {
|
120 |
status.textContent = 'Analyzing...';
|