Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update transformer.py #3539

Merged
merged 1 commit into from
Aug 30, 2024
Merged

Conversation

diego-morientez
Copy link
Contributor

Adding **kwargs to AutoFeatureExtractor.from_pretrained, in order to work with proxy configuration.

bert_embedding = TransformerWordEmbeddings('bert-base-multilingual-cased', proxies={"http": "...", "https": "..."})

This file is not dowloaded if **kwargs is not added.

requests.exceptions.SSLError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-multilingual-cased/resolve/main/model.safetensors (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))"), '(Request ID: dd8502e8-072c-4735-89f6-0e13a81c4efd)')

https://huggingface.co/bert-base-multilingual-cased/resolve/main/model.safetensors

Adding  **kwargs, in order to work with proxy configuration.
@helpmefindaname
Copy link
Collaborator

Thank you for your contribution!

@helpmefindaname helpmefindaname merged commit c674212 into flairNLP:master Aug 30, 2024
1 check passed
@diego-morientez diego-morientez deleted the patch-1 branch August 30, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants