Make models in package work

This commit is contained in:
Patrick Jentsch
2024-03-06 13:20:02 +01:00
parent a1e5bd61e0
commit 55a62053b0
8 changed files with 56 additions and 1861 deletions

View File

@ -59,7 +59,8 @@ class SpaCyNLPPipelineModel(FileMixin, HashidMixin, db.Model):
nopaque_user = User.query.filter_by(username='nopaque').first()
defaults_file = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'SpaCyNLPPipelineModel.defaults.yml'
'default_records',
'spacy_nlp_pipeline_model.yml'
)
with open(defaults_file, 'r') as f:
defaults = yaml.safe_load(f)