Download processing.py from hf-internal-testing/test_dynamic_processor: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/hf-internal-testing/test_dynamic_processor/resolve/24b4f962cbc2c1df3750c77e0eee7890e4ced959/processing.py
- Command line
-
hf download hf://hf-internal-testing/test_dynamic_processor@24b4f962cbc2c1df3750c77e0eee7890e4ced959/processing.py
-
curl -L -o processing.py https://huggingface.co/hf-internal-testing/test_dynamic_processor/resolve/24b4f962cbc2c1df3750c77e0eee7890e4ced959/processing.py
206 Bytes
| from transformers import ProcessorMixin | |
| class NewProcessor(ProcessorMixin): | |
| feature_extractor_class = "AutoFeatureExtractor" | |
| tokenizer_class = "AutoTokenizer" | |
| special_attribute_present = True | |