Merge pull request #617 from younver/master

case handling analyze function with single actions
This commit is contained in:
Sefik Ilkin Serengil 2022-12-12 09:25:38 +00:00 committed by GitHub
commit 531522f604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,6 +321,9 @@ def analyze(img_path, actions = ('emotion', 'age', 'gender', 'race') , models =
} }
""" """
if type(actions) == str:
actions = (actions,)
actions = list(actions) actions = list(actions)
if not models: if not models: