added 'multi' key to actual operation configurations
This commit is contained in:
parent
4287f6d987
commit
9fee32cecd
@ -9,6 +9,7 @@ service:
|
||||
operations:
|
||||
conversion:
|
||||
input:
|
||||
multi: False
|
||||
subdir: ""
|
||||
extension: ORIGIN.pdf.gz
|
||||
output:
|
||||
@ -16,6 +17,7 @@ service:
|
||||
extension: json.gz
|
||||
extraction:
|
||||
input:
|
||||
multi: False
|
||||
subdir: ""
|
||||
extension: ORIGIN.pdf.gz
|
||||
output:
|
||||
@ -23,6 +25,7 @@ service:
|
||||
extension: json.gz
|
||||
table_parsing:
|
||||
input:
|
||||
multi: True
|
||||
subdir: "pages_as_images"
|
||||
extension: json.gz
|
||||
output:
|
||||
@ -30,6 +33,7 @@ service:
|
||||
extension: json.gz
|
||||
image_classification:
|
||||
input:
|
||||
multi: True
|
||||
subdir: "extracted_images"
|
||||
extension: json.gz
|
||||
output:
|
||||
@ -37,6 +41,7 @@ service:
|
||||
extension: IMAGE_INFO.json.gz
|
||||
default:
|
||||
input:
|
||||
multi: False
|
||||
subdir: ""
|
||||
extension: in.gz
|
||||
output:
|
||||
|
||||
@ -14,7 +14,10 @@ def parse_args():
|
||||
|
||||
|
||||
def interpret(parsed):
|
||||
return {**parsed, "data": str(string_to_bytes(parsed["data"]))}
|
||||
try:
|
||||
return {**parsed, "data": str(string_to_bytes(parsed["data"]))}
|
||||
except KeyError:
|
||||
return parsed
|
||||
|
||||
|
||||
def main(fp):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user