|
|
@ -16,6 +16,7 @@ from .base import assets
|
|
|
|
METS_KANT = assets.url_of('kant_aufklaerung_1784-page-region-line-word_glyph/data/mets.xml')
|
|
|
|
METS_KANT = assets.url_of('kant_aufklaerung_1784-page-region-line-word_glyph/data/mets.xml')
|
|
|
|
WORKSPACE_DIR = tempfile.mkdtemp(prefix='test-ocrd-calamari-')
|
|
|
|
WORKSPACE_DIR = tempfile.mkdtemp(prefix='test-ocrd-calamari-')
|
|
|
|
CHECKPOINT_DIR = os.getenv('MODEL')
|
|
|
|
CHECKPOINT_DIR = os.getenv('MODEL')
|
|
|
|
|
|
|
|
DEBUG = os.getenv('DEBUG', False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def page_namespace(tree):
|
|
|
|
def page_namespace(tree):
|
|
|
@ -83,6 +84,7 @@ def workspace():
|
|
|
|
|
|
|
|
|
|
|
|
yield workspace
|
|
|
|
yield workspace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not DEBUG:
|
|
|
|
shutil.rmtree(WORKSPACE_DIR)
|
|
|
|
shutil.rmtree(WORKSPACE_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|