Skip to content

Commit

Permalink
[fix] ai detection score winston ai
Browse files Browse the repository at this point in the history
  • Loading branch information
floflokie committed Nov 10, 2023
1 parent 70593c5 commit bd1905a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edenai_apis/apis/winstonai/winstonai_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def text__ai_detection(self, text: str) -> ResponseType[AiDetectionDataClass]:
items: Sequence[AiDetectionItem] = [
AiDetectionItem(
text=sentence["text"],
ai_score=sentence["score"],
prediction=AiDetectionItem.set_label_based_on_human_score(sentence["score"]),
ai_score=sentence["score"] / 100,
prediction=AiDetectionItem.set_label_based_on_human_score(sentence["score"] / 100),
)
for sentence in sentences
]
Expand Down

0 comments on commit bd1905a

Please sign in to comment.