Update index.html
Browse files- index.html +3 -3
index.html
CHANGED
|
@@ -222,7 +222,7 @@
|
|
| 222 |
});
|
| 223 |
|
| 224 |
try {
|
| 225 |
-
// Usando a versão "base" que é muito menor
|
| 226 |
captioner = await pipeline(
|
| 227 |
"image-to-text",
|
| 228 |
"Xenova/vit-gpt2-image-captioning"
|
|
@@ -254,13 +254,13 @@
|
|
| 254 |
statusDiv.innerHTML = "⏳ Analisando a imagem...";
|
| 255 |
|
| 256 |
try {
|
| 257 |
-
//
|
| 258 |
const resCond = await captioner(imageUrl, {
|
| 259 |
prompt: promptText,
|
| 260 |
max_new_tokens: 50
|
| 261 |
});
|
| 262 |
|
| 263 |
-
//
|
| 264 |
const resUncond = await captioner(imageUrl, {
|
| 265 |
max_new_tokens: 50
|
| 266 |
});
|
|
|
|
| 222 |
});
|
| 223 |
|
| 224 |
try {
|
| 225 |
+
// Usando a versão "base" que é muito menor
|
| 226 |
captioner = await pipeline(
|
| 227 |
"image-to-text",
|
| 228 |
"Xenova/vit-gpt2-image-captioning"
|
|
|
|
| 254 |
statusDiv.innerHTML = "⏳ Analisando a imagem...";
|
| 255 |
|
| 256 |
try {
|
| 257 |
+
// Legenda Condicional
|
| 258 |
const resCond = await captioner(imageUrl, {
|
| 259 |
prompt: promptText,
|
| 260 |
max_new_tokens: 50
|
| 261 |
});
|
| 262 |
|
| 263 |
+
// Legenda Incondicional
|
| 264 |
const resUncond = await captioner(imageUrl, {
|
| 265 |
max_new_tokens: 50
|
| 266 |
});
|