rjiang12 commited on
Commit
40b3d27
·
1 Parent(s): 6278b3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -42,7 +42,6 @@ def generate_answer_git(processor, model, image, question):
42
  generated_ids = model.generate(pixel_values=pixel_values, input_ids=input_ids, max_length=50, return_dict_in_generate=True, output_scores=True)
43
  print('scores:')
44
  print(generated_ids.scores)
45
- print(max(generated_ids.scores), max(generated_ids.scores[0:generated_ids.scores.index(max(generated_ids.scores))], generated_ids.scores[generated_ids.scores.index(max(generated_ids.scores)):]))
46
  print('sequences:')
47
  print(generated_ids.sequences)
48
  print(generated_ids)
 
42
  generated_ids = model.generate(pixel_values=pixel_values, input_ids=input_ids, max_length=50, return_dict_in_generate=True, output_scores=True)
43
  print('scores:')
44
  print(generated_ids.scores)
 
45
  print('sequences:')
46
  print(generated_ids.sequences)
47
  print(generated_ids)