Issue #87, Per document language selection
This commit is contained in:
@@ -2,11 +2,6 @@ from __future__ import absolute_import
|
||||
|
||||
from common.utils import load_backend
|
||||
|
||||
from .settings import BACKEND, LANGUAGE
|
||||
|
||||
try:
|
||||
language_backend = load_backend(u'.'.join([u'ocr', u'lang', LANGUAGE, u'LanguageBackend']))()
|
||||
except ImportError:
|
||||
language_backend = None
|
||||
from .settings import BACKEND
|
||||
|
||||
ocr_backend = load_backend(BACKEND)()
|
||||
|
||||
Reference in New Issue
Block a user