Skip to content

Commit

Permalink
fix an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gksoriginals committed Nov 23, 2023
1 parent 7d84a39 commit d807f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def has_speaker_left_stage(frame, client: OpenAI):
)

# Interpret the response from the OpenAI API
is_person_in_image = True if response.choices[0].text == "True" else False
is_person_left = False if response.choices[0].text == "True" else True

# This is a placeholder and needs to be replaced with actual code to interpret the response
return is_person_in_image
return is_person_left

0 comments on commit d807f44

Please sign in to comment.