From cbf3abb424ab50ae7fac961f0868e94c7011742a Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Fri, 21 Oct 2022 13:33:25 +0200
Subject: [PATCH] Add SpaCyNLPPipelineModel to flask shell context
---
nopaque.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/nopaque.py b/nopaque.py
index bff58ae1..cf1b1dec 100644
--- a/nopaque.py
+++ b/nopaque.py
@@ -13,6 +13,7 @@ from app.models import (
Permission,
Role,
TesseractOCRPipelineModel,
+ SpaCyNLPPipelineModel,
User
) # noqa
from flask import Flask # noqa
@@ -42,6 +43,7 @@ def make_shell_context() -> Dict[str, Any]:
'Permission': Permission,
'Role': Role,
'TesseractOCRPipelineModel': TesseractOCRPipelineModel,
+ 'SpaCyNLPPipelineModel': SpaCyNLPPipelineModel,
'User': User
}