Skip to content

Commit

Permalink
added a break in the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Benteng Ma committed Mar 22, 2024
1 parent 45f8334 commit 6721361
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def __init__(self, default):
self.default = default

def execute(self, userdata):
# don't worry, this works.
for person in userdata['people']:
self.default.voice.speak(person['features'])
break # only speak for the first person in the frame

return 'succeeded'

0 comments on commit 6721361

Please sign in to comment.