Skip to content

Commit

Permalink
Made local cache version dependent.
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriks73 committed Oct 11, 2024
1 parent 3a5bde8 commit 6bc8daa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tempocnn/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import numpy as np
from tensorflow.keras.models import load_model
from tempocnn.version import __version__ as package_version

logger = logging.getLogger("tempocnn.classifier")

Expand Down Expand Up @@ -300,7 +301,7 @@ def _to_model_resource(model_name):

def _extract_from_package(resource):
# check local cache
cache_path = Path(Path.home(), ".tempocnn", resource)
cache_path = Path(Path.home(), ".tempocnn", package_version, resource)
if cache_path.exists():
return str(cache_path)

Expand Down

0 comments on commit 6bc8daa

Please sign in to comment.