Skip to content

Commit e1b1508

Browse files
authored
Fix modular model converter unable to generate Processor classes (#33737)
fix: fix wrong file type for processor in `modular_model_converter.py`
1 parent e32521b commit e1b1508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/modular_model_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def replace_call_to_super(class_finder: ClassFinder, updated_node: cst.ClassDef,
502502
TYPE_TO_FILE_TYPE = {
503503
"Config": "configuration",
504504
"Tokenizer": "tokenization",
505-
"Processor": "processor",
505+
"Processor": "processing",
506506
"ImageProcessor": "image_processing",
507507
"FeatureExtractor": "feature_extractor",
508508
}

0 commit comments

Comments
 (0)