Skip to content

Commit

Permalink
Add some comments about the changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Stragier committed Jun 5, 2023
1 parent e643f56 commit c09fc43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepface/DeepFace.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,12 @@ def analyze(
actions = (actions,)

actions = list(actions)


# Check if actions have been passed correctly
if not actions:
raise ValueError("`actions` must be a list of strings.")

# For each action, check if it is valid
for action in actions:
if action not in ("emotion", "age", "gender", "race"):
raise ValueError(
Expand Down

0 comments on commit c09fc43

Please sign in to comment.