Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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'
|