Skip to content

Commit c167fba

Browse files
committed
Better import
1 parent 5740ffc commit c167fba

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/layoutparser/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
from .ocr import (
1313
GCVFeatureType, GCVAgent,
1414
TesseractFeatureType, TesseractAgent
15+
)
16+
17+
from .models import (
18+
Detectron2LayoutModel
1519
)

src/layoutparser/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from detectron2.engine import DefaultPredictor
66
from .elements import *
77

8+
__all__ = ['Detectron2LayoutModel']
9+
810

911
class BaseLayoutModel(ABC):
1012

0 commit comments

Comments
 (0)