rjiang12 commited on
Commit
dc4835e
·
1 Parent(s): a298ea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def generate_answer_vilt(processor, model, image, question):
75
  if s <= logit < m:
76
  s = logit
77
  t = sum(logitsList)
78
- pm, ps = m/logitsList, s/logitsList
79
  print(f"{pm}, {ps}")
80
  print(f"scaled: {pm/(pm + ps)}, {ps/(pm + ps)}")
81
  print(f"runnerup_idx_in_list = {logitsList.index(s)}")
 
75
  if s <= logit < m:
76
  s = logit
77
  t = sum(logitsList)
78
+ pm, ps = m/t, s/t
79
  print(f"{pm}, {ps}")
80
  print(f"scaled: {pm/(pm + ps)}, {ps/(pm + ps)}")
81
  print(f"runnerup_idx_in_list = {logitsList.index(s)}")