diff --git a/cake-game/src/components/classifier-table-row/ClassifierTableRow.jsx b/cake-game/src/components/classifier-table-row/ClassifierTableRow.jsx index ba3dfba..cd29c5b 100644 --- a/cake-game/src/components/classifier-table-row/ClassifierTableRow.jsx +++ b/cake-game/src/components/classifier-table-row/ClassifierTableRow.jsx @@ -18,12 +18,21 @@ function ClassifierTableRow(props) { return classifier; } + function getMatchIndicator() { + if (props.result.expected_category === props.result.user_category) { + return '✅'; + } + + return '❌'; + } + return ( <> Random image + { getMatchIndicator() } { props.result.expected_category } { props.result.user_category } { formatClassificationCollections(props.result.models.mobilenet_classifier, 'className') } diff --git a/cake-game/src/routes/end/End.jsx b/cake-game/src/routes/end/End.jsx index 733fa24..12f7593 100644 --- a/cake-game/src/routes/end/End.jsx +++ b/cake-game/src/routes/end/End.jsx @@ -66,6 +66,7 @@ function End() { Image + Match Expected You MobileNet