pedrororo commited on
Commit
429172e
1 Parent(s): 7253602

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def generate_caption(image):
35
  # Gerar legenda
36
  out = model.generate(
37
  **inputs,
38
- max_length=50, # Ajuste conforme necessário
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
  )