adapt to one-arg start_new_session_and_model and rename load_model

This commit is contained in:
kba 2024-08-23 20:29:44 +02:00
parent 8c4bfa229f
commit 762a7a058e
2 changed files with 33 additions and 25 deletions

View file

@ -1,4 +1,9 @@
EYNOLLAH_MODELS ?= $(PWD)/models_eynollah
ifneq (,$(wildcard $(HOME)/.local/share/ocrd-resources/ocrd-eynollah-segment/default))
EYNOLLAH_MODELS = $(HOME)/.local/share/ocrd-resources/ocrd-eynollah-segment/default
else
EYNOLLAH_MODELS = $(PWD)/models_eynollah
endif
export EYNOLLAH_MODELS
# BEGIN-EVAL makefile-parser --make-help Makefile
@ -47,4 +52,5 @@ smoke-test:
# Run unit tests
test:
echo $(EYNOLLAH_MODELS)
pytest tests