Skip to content

Commit

Permalink
fix: use clip-auth-token env
Browse files Browse the repository at this point in the history
  • Loading branch information
numb3r3 committed Aug 30, 2022
1 parent ad53c61 commit da8583f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/clip_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit da8583f

Please sign in to comment.