Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into remove-unstructured_pytesseract
Browse files Browse the repository at this point in the history
  • Loading branch information
christinestraub committed Aug 8, 2024
2 parents bc0d296 + 2373eaa commit 9058690
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion unstructured/ingest/v2/cli/base/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def add_options(self, cmd: CommandT, extras: list[Type[CliConfig]]) -> CommandT:
raise ValueError(f"failed to set configs from {config.__name__}: {e}")
return cmd

def get_pipline(
def get_pipeline(
self,
src: str,
source_options: dict[str, Any],
Expand Down
2 changes: 1 addition & 1 deletion unstructured/ingest/v2/cli/base/dest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def cmd(self, ctx: click.Context, **options) -> None:
source_options: dict = ctx.parent.params if ctx.parent else {}
conform_click_options(options)
try:
pipeline = self.get_pipline(
pipeline = self.get_pipeline(
src=source_cmd,
source_options=source_options,
dest=self.cmd_name,
Expand Down
2 changes: 1 addition & 1 deletion unstructured/ingest/v2/cli/base/src.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def cmd(self, ctx: click.Context, **options) -> None:
conform_click_options(options)
logger.setLevel(logging.DEBUG if options.get("verbose", False) else logging.INFO)
try:
pipeline = self.get_pipline(src=self.cmd_name, source_options=options)
pipeline = self.get_pipeline(src=self.cmd_name, source_options=options)
pipeline.run()
except Exception as e:
logger.error(f"failed to run source command {self.cmd_name}: {e}", exc_info=True)
Expand Down
2 changes: 1 addition & 1 deletion unstructured/ingest/v2/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def clean_results(self, results: Optional[list[Union[Any, list[Any]]]]) -> Optio

def _run(self):
logger.info(
f"Running local pipline: {self} with configs: "
f"Running local pipeline: {self} with configs: "
f"{sterilize_dict(self.context.to_dict(redact_sensitive=True))}"
)
if self.context.mp_supported:
Expand Down

0 comments on commit 9058690

Please sign in to comment.