You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker-compose.yaml example, not sure if environment is required here. Is the setup of FACE_MODEL correct ?
For some reason, I had to setup environment for API_KEY, as the file did not work as per below.
The API key is verified in facerecognition-external-model.py by checking if the env var API_KEY is set. If it is not set, it will use the api.keyfile. The problem is that the environmental variable is already set in the Dockerfile to ENV API_KEY=some-super-secret-api-key. So it will always use the environmental variable (which can only be overwritten in docker compose, but not unset) and never rely on the key file.
I see two possible fixes:
remove the assignment of the ENV variable in the Dockerfile
adapt the logic in the facerecognition-external-model.py to first check for an existing file and if none exists use the env var
docker-compose.yaml example, not sure if environment is required here. Is the setup of FACE_MODEL correct ?
For some reason, I had to setup environment for API_KEY, as the file did not work as per below.
The text was updated successfully, but these errors were encountered: