Skip to content

Commit

Permalink
Update transformer.py
Browse files Browse the repository at this point in the history
Adding  **kwargs, in order to work with proxy configuration.
  • Loading branch information
diego-morientez authored Aug 23, 2024
1 parent d4a48a1 commit 14a6502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flair/embeddings/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ def __init__(
model, add_prefix_space=True, **transformers_tokenizer_kwargs, **kwargs
)
try:
self.feature_extractor = AutoFeatureExtractor.from_pretrained(model, apply_ocr=False)
self.feature_extractor = AutoFeatureExtractor.from_pretrained(model, apply_ocr=False, **kwargs)
except OSError:
self.feature_extractor = None
else:
Expand Down

0 comments on commit 14a6502

Please sign in to comment.