Skip to content

Commit

Permalink
Merge pull request #573 from AFP-Medialab/572-synthetic-images-label-…
Browse files Browse the repository at this point in the history
…for-non-conclusive-detection

572 synthetic images label for non conclusive detection
  • Loading branch information
Sallaa authored Aug 29, 2024
2 parents 36c56e6 + f979406 commit 660b5b2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ const AssistantCheckStatus = () => {

const newsFramingTitle = "news topic";
const newsFramingFailState = useSelector(
(state) => state.assistant.newsFramingFail
(state) => state.assistant.newsFramingFail,
);

const newsGenreTitle = "news genre";
const newsGenreFailState = useSelector(
(state) => state.assistant.newsGenreFail
(state) => state.assistant.newsGenreFail,
);

const persuasionTitle = "persuasion";
const persuasionFailState = useSelector(
(state) => state.assistant.persuasionFail
(state) => state.assistant.persuasionFail,
);

const failStates = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,18 +443,20 @@ const SyntheticImageDetectionResults = ({
ref={gaugeChartRef}
p={2}
>
{maxScore > DETECTION_THRESHOLDS.THRESHOLD_2 && (
<Typography
variant="h5"
align="center"
alignSelf="center"
sx={{ color: "red" }}
>
{keyword(
"synthetic_image_detection_generic_detection_text",
)}
</Typography>
)}
<Typography
variant="h5"
align="center"
alignSelf="center"
sx={{ color: "red" }}
>
{maxScore > DETECTION_THRESHOLDS.THRESHOLD_2
? keyword(
"synthetic_image_detection_generic_detection_text",
)
: keyword(
"synthetic_image_detection_generic_inconclusive_text",
)}
</Typography>

{nd && nd.similar_media && nd.similar_media.length > 0 && (
<Typography
Expand Down

0 comments on commit 660b5b2

Please sign in to comment.