Skip to content

Commit d42b9d2

Browse files
committed
pre-commit
1 parent 25589ac commit d42b9d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

datafog/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def download_model(model_name: str = typer.Argument(None, help="Model to downloa
122122
if not model_name:
123123
typer.echo("No model name provided to download.")
124124
raise typer.Exit(code=1)
125-
125+
126126
SpacyAnnotator.download_model(model_name)
127127
typer.echo(f"Model {model_name} downloaded.")
128128

@@ -142,7 +142,7 @@ def show_spacy_model_directory(
142142
if not model_name:
143143
typer.echo("No model name provided to check.")
144144
raise typer.Exit(code=1)
145-
145+
146146
annotator = SpacyAnnotator(model_name)
147147
typer.echo(annotator.show_model_path())
148148

@@ -182,7 +182,7 @@ def redact_text(text: str = typer.Argument(None, help="Text to redact")):
182182
if not text:
183183
typer.echo("No text provided to redact.")
184184
raise typer.Exit(code=1)
185-
185+
186186
annotator = SpacyAnnotator()
187187
anonymizer = Anonymizer(anonymizer_type=AnonymizerType.REDACT)
188188
annotations = annotator.annotate_text(text)
@@ -203,7 +203,7 @@ def replace_text(text: str = typer.Argument(None, help="Text to replace PII")):
203203
if not text:
204204
typer.echo("No text provided to replace PII.")
205205
raise typer.Exit(code=1)
206-
206+
207207
annotator = SpacyAnnotator()
208208
anonymizer = Anonymizer(anonymizer_type=AnonymizerType.REPLACE)
209209
annotations = annotator.annotate_text(text)
@@ -228,7 +228,7 @@ def hash_text(
228228
if not text:
229229
typer.echo("No text provided to hash.")
230230
raise typer.Exit(code=1)
231-
231+
232232
annotator = SpacyAnnotator()
233233
anonymizer = Anonymizer(anonymizer_type=AnonymizerType.HASH, hash_type=hash_type)
234234
annotations = annotator.annotate_text(text)

0 commit comments

Comments
 (0)