Skip to content

Commit

Permalink
Merge pull request #608 from AFP-Medialab/deepfake-ui-enhancement
Browse files Browse the repository at this point in the history
Removed card
  • Loading branch information
Sallaa authored Oct 1, 2024
2 parents 4f8ed02 + ee939d3 commit 47af761
Showing 1 changed file with 20 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,28 +319,26 @@ const DeepfakeResultsVideo = (props) => {
)}
</Grid2>
<Grid2 size={{ xs: 6 }} p={2}>
<Card>
<Stack direction="column" p={4} spacing={4}>
{deepfakeScores && deepfakeScores.length === 0 && (
<Typography variant="h5" sx={{ color: "red" }}>
{keyword("deepfake_no_face_detection")}
</Typography>
)}
{deepfakeScores && deepfakeScores.length !== 0 && (
<GaugeChartResult
keyword={keyword}
scores={deepfakeScores}
methodNames={DeepfakeImageDetectionMethodNames}
detectionThresholds={DETECTION_THRESHOLDS}
resultsHaveErrors={false}
sanitizeDetectionPercentage={(n) => Math.round(n)}
gaugeExplanation={{ keywords: keywords, colors: colors }}
toolName={"Deepfake"}
detectionType={"video"}
/>
)}
</Stack>
</Card>
<Stack direction="column" p={4} spacing={4}>
{deepfakeScores && deepfakeScores.length === 0 && (
<Typography variant="h5" sx={{ color: "red" }}>
{keyword("deepfake_no_face_detection")}
</Typography>
)}
{deepfakeScores && deepfakeScores.length !== 0 && (
<GaugeChartResult
keyword={keyword}
scores={deepfakeScores}
methodNames={DeepfakeImageDetectionMethodNames}
detectionThresholds={DETECTION_THRESHOLDS}
resultsHaveErrors={false}
sanitizeDetectionPercentage={(n) => Math.round(n)}
gaugeExplanation={{ keywords: keywords, colors: colors }}
toolName={"Deepfake"}
detectionType={"video"}
/>
)}
</Stack>
</Grid2>
</Grid2>

Expand Down

0 comments on commit 47af761

Please sign in to comment.