Skip to content

Commit b467ca6

Browse files
authored
Fix typos (huggingface#978)
1 parent 1e197c7 commit b467ca6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipeline_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P
584584
def components(self) -> Dict[str, Any]:
585585
r"""
586586
587-
The `self.compenents` property can be useful to run different pipelines with the same weights and
587+
The `self.components` property can be useful to run different pipelines with the same weights and
588588
configurations to not have to re-allocate memory.
589589
590590
Examples:
@@ -602,7 +602,7 @@ def components(self) -> Dict[str, Any]:
602602
```
603603
604604
Returns:
605-
A dictionaly containing all the modules needed to initialize the pipleline.
605+
A dictionaly containing all the modules needed to initialize the pipeline.
606606
"""
607607
components = {k: getattr(self, k) for k in self.config.keys() if not k.startswith("_")}
608608
expected_modules = set(inspect.signature(self.__init__).parameters.keys()) - set(["self"])

0 commit comments

Comments
 (0)