Skip to content

Commit

Permalink
feat: create cli command to create documentai batch jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Feb 16, 2023
1 parent 6b0d4ac commit 2afd0ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions row_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
row_cli.py images process --job=name --from=location --save-to=location --index=location --task-index=index --file-count=count --instances=size
row_cli.py image convert <file_name> (--save-to=location)
row_cli.py detect circles <file_name> (--save-to=location) [--mosaic]
row_cli.py detect characters --from=location
row_cli.py results download <run_name> (--from=location)
row_cli.py results summarize <run_name> (--from=location)
Expand All @@ -25,6 +26,7 @@
python row_cli.py storage pick-range --from=.ephemeral --task-index=0 --instances=10 --file-count=100
python row_cli.py image convert ./test-data/multiple_page.pdf --save-to=./test
python row_cli.py detect circles ./test-data/five_circles_with_text.png --save-to=./test --mosaic
python row_cli.py detect characters --from=gs://bucket/job/mosaics/
python row_cli.py results download bobcat --from=bucket-name
"""

Expand Down Expand Up @@ -133,6 +135,9 @@ def main():

return circles

if args["detect"] and args["characters"]:
row.create_batch_character_detection_job(args["--from"])

if args["results"] and args["download"]:
location = row.download_run(args["--from"], args["<run_name>"])

Expand Down

0 comments on commit 2afd0ea

Please sign in to comment.