diff --git a/client/clip_client/client.py b/client/clip_client/client.py index e844308b0..f7a0a736d 100644 --- a/client/clip_client/client.py +++ b/client/clip_client/client.py @@ -61,7 +61,9 @@ def __init__(self, server: str, credential: dict = {}, **kwargs): else: raise ValueError(f'{server} is not a valid scheme') - self._authorization = credential.get('Authorization', None) + self._authorization = credential.get( + 'Authorization', os.environ.get('CLIP_AUTH_TOKEN') + ) @overload def encode(