rjiang12 commited on
Commit
a7751e1
·
1 Parent(s): a2b1833

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -40,7 +40,6 @@ def generate_answer_git(processor, model, image, question):
40
 
41
  generated_ids = model.generate(pixel_values=pixel_values, input_ids=input_ids, max_length=50, output_scores=True)
42
  print(generated_ids)
43
- print(generated_ids.scores)
44
  generated_answer = processor.batch_decode(generated_ids, skip_special_tokens=True)
45
 
46
  return generated_answer
@@ -52,7 +51,6 @@ def generate_answer_blip(processor, model, image, question):
52
 
53
  generated_ids = model.generate(**inputs, max_length=50, output_scores=True)
54
  print(generated_ids)
55
- print(generated_ids.scores)
56
  generated_answer = processor.batch_decode(generated_ids, skip_special_tokens=True)
57
 
58
  return generated_answer
 
40
 
41
  generated_ids = model.generate(pixel_values=pixel_values, input_ids=input_ids, max_length=50, output_scores=True)
42
  print(generated_ids)
 
43
  generated_answer = processor.batch_decode(generated_ids, skip_special_tokens=True)
44
 
45
  return generated_answer
 
51
 
52
  generated_ids = model.generate(**inputs, max_length=50, output_scores=True)
53
  print(generated_ids)
 
54
  generated_answer = processor.batch_decode(generated_ids, skip_special_tokens=True)
55
 
56
  return generated_answer