AnaDrivia commited on
Commit
4787c15
·
verified ·
1 Parent(s): f347387

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -3
index.html CHANGED
@@ -222,7 +222,7 @@
222
  });
223
 
224
  try {
225
- // Usando a versão "base" que é muito menor (~250MB quantizada)
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
- // 1. Legenda Condicional
258
  const resCond = await captioner(imageUrl, {
259
  prompt: promptText,
260
  max_new_tokens: 50
261
  });
262
 
263
- // 2. Legenda Incondicional
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
  });