Spaces:
Running
Running
Fix bug
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def answer_question(image, text):
|
|
14 |
|
15 |
logits = outputs.logits
|
16 |
idx = logits.argmax(-1).item()
|
17 |
-
predicted_answer = model.config.id2label[idx]
|
18 |
|
19 |
return predicted_answer
|
20 |
|
|
|
14 |
|
15 |
logits = outputs.logits
|
16 |
idx = logits.argmax(-1).item()
|
17 |
+
predicted_answer = model.config.id2label[idx]
|
18 |
|
19 |
return predicted_answer
|
20 |
|