Update face_analyzer.py

This commit is contained in:
Siwat Sirichai 2023-09-23 03:00:56 +07:00
parent 56b509ae1f
commit b1a4922b60
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ while True:
res = requests.post("https://racist.siwatsystem.com/process_image",json=data) res = requests.post("https://racist.siwatsystem.com/process_image",json=data)
res = res.content.decode("utf-8") res = res.content.decode("utf-8")
res = json.loads(res) res = json.loads(res)
print(res) #print(res)
if len(res) >0: if len(res) >0:
if (res[0]['dominant_race']=="asian"): if (res[0]['dominant_race']=="asian"):
print("Ching Chong") print("Ching Chong")