rjiang12 commited on
Commit
c2e8e56
·
1 Parent(s): 1253183

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -62,6 +62,9 @@ def generate_answer_git(processor, model, image, question):
62
  print(outputs.logits)
63
  predicted_class_idx = outputs.logits.argmax(-1)
64
  # return model.config.id2label[predicted_class_idx]
 
 
 
65
 
66
 
67
  return 'haha'
 
62
  print(outputs.logits)
63
  predicted_class_idx = outputs.logits.argmax(-1)
64
  # return model.config.id2label[predicted_class_idx]
65
+ print(predicted_class_idx)
66
+ print(model.config.id2label)
67
+ print(model.config.id2label[predicted_class_idx])
68
 
69
 
70
  return 'haha'