Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def generate_caption(image):
|
|
35 |
# Gerar legenda
|
36 |
out = model.generate(
|
37 |
**inputs,
|
38 |
-
max_length=
|
39 |
num_beams=5,
|
40 |
no_repeat_ngram_size=2
|
41 |
)
|
|
|
35 |
# Gerar legenda
|
36 |
out = model.generate(
|
37 |
**inputs,
|
38 |
+
max_length=100, # Ajuste conforme necessário
|
39 |
num_beams=5,
|
40 |
no_repeat_ngram_size=2
|
41 |
)
|