Elron commited on
Commit
a3d663f
1 Parent(s): 5180b8d

Upload catalog.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. catalog.py +2 -2
catalog.py CHANGED
@@ -12,7 +12,7 @@ from .artifact import (
12
  Artifactories,
13
  Artifactory,
14
  get_artifactory_name_and_args,
15
- reset_artifacts_cache,
16
  )
17
  from .logging_utils import get_logger
18
  from .settings_utils import get_constants
@@ -128,7 +128,7 @@ def add_to_catalog(
128
  catalog_path: Optional[str] = None,
129
  verbose=True,
130
  ):
131
- reset_artifacts_cache()
132
  if catalog is None:
133
  if catalog_path is None:
134
  catalog_path = constants.default_catalog_path
 
12
  Artifactories,
13
  Artifactory,
14
  get_artifactory_name_and_args,
15
+ reset_artifacts_json_cache,
16
  )
17
  from .logging_utils import get_logger
18
  from .settings_utils import get_constants
 
128
  catalog_path: Optional[str] = None,
129
  verbose=True,
130
  ):
131
+ reset_artifacts_json_cache()
132
  if catalog is None:
133
  if catalog_path is None:
134
  catalog_path = constants.default_catalog_path