Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
Liyulingyue committed May 23, 2024
1 parent 99e6086 commit 9baed76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from .paddleocr import *
import importlib.metadata as importlib_metadata

__version__ = paddleocr.VERSION
try:
__version__ = importlib_metadata.version(__package__ or __name__)
except importlib_metadata.PackageNotFoundError:
__version__ = "0.0.0"
__all__ = [
"PaddleOCR",
"PPStructure",
Expand Down
1 change: 0 additions & 1 deletion paddleocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def _import_file(module_name, file_path, make_importable=False):
]

SUPPORT_DET_MODEL = ["DB"]
VERSION = "2.8.0"
SUPPORT_REC_MODEL = ["CRNN", "SVTR_LCNet"]
BASE_DIR = os.path.expanduser("~/.paddleocr/")

Expand Down

0 comments on commit 9baed76

Please sign in to comment.