Skip to content

Commit

Permalink
fixed issue with no subjectivite sentences detected
Browse files Browse the repository at this point in the history
  • Loading branch information
rosannamilner committed Aug 21, 2024
1 parent 24aa84e commit fed1d7b
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,14 +667,15 @@ const AssistantCredSignals = () => {
{keyword("failed_to_load")}
</Typography>
)}
{subjectivityDone && (
<Typography
sx={{ color: "text.secondary", align: "start" }}
>
{keyword("subjective_sentences_detected")}{" "}
{calculateSubjectivity(subjectivityResult.sentences)}
</Typography>
)}
{subjectivityDone &&
Object.keys(subjectivityResult.entities).length >= 1 && (
<Typography
sx={{ color: "text.secondary", align: "start" }}
>
{keyword("subjective_sentences_detected")}{" "}
{calculateSubjectivity(subjectivityResult.sentences)}
</Typography>
)}
{subjectivityDone &&
Object.keys(subjectivityResult.entities).length < 1 && (
<Typography
Expand Down

0 comments on commit fed1d7b

Please sign in to comment.