Skip to content

Commit

Permalink
feat: change output dir
Browse files Browse the repository at this point in the history
Signed-off-by: 117503445 <[email protected]>
  • Loading branch information
117503445 committed Oct 14, 2023
1 parent df90d9a commit e2da53e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nougat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ WORKDIR /workspace/nougat-demo
COPY . .

# download models
RUN nougat bitcoin.pdf -o out -m 0.1.0-base --markdown
RUN nougat bitcoin-page-2.pdf -o out -m 0.1.0-base --markdown

ENTRYPOINT [ "python", "fc.py" ]
Binary file added src/nougat/bitcoin-page-2.pdf
Binary file not shown.
Binary file removed src/nougat/bitcoin.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/nougat/fc.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def create_main_logger():
file.write_json(file_task, {"status": "executing"})

try:
command = f'nougat {file} -o {dir_output} -m 0.1.0-base --markdown'
command = f'nougat {file} -o {dir_output / stem / "output"} -m 0.1.0-base --markdown'
logger.debug(f'command = {command}')
subprocess.run(command, shell=True)
file.write_json(file_task, {"status": "done"})
Expand Down

0 comments on commit e2da53e

Please sign in to comment.