Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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/
|
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)}")
|