KasKniesmeijer commited on
Commit
59ee00b
·
1 Parent(s): 39fa4f0

changed max tokens to 400

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def answer_question(image, question):
58
 
59
  # Generate the answer
60
  try:
61
- outputs = model.generate(**inputs, max_new_tokens=100)
62
  answer = processor.decode(outputs[0], skip_special_tokens=True)
63
  return answer
64
  except Exception as e:
 
58
 
59
  # Generate the answer
60
  try:
61
+ outputs = model.generate(**inputs, max_new_tokens=400)
62
  answer = processor.decode(outputs[0], skip_special_tokens=True)
63
  return answer
64
  except Exception as e: