Upload catalog.py with huggingface_hub
Browse files- catalog.py +2 -2
catalog.py
CHANGED
|
@@ -4,8 +4,8 @@ from pathlib import Path
|
|
| 4 |
|
| 5 |
import requests
|
| 6 |
|
| 7 |
-
from ._version import get_current_version
|
| 8 |
from .artifact import Artifact, Artifactory
|
|
|
|
| 9 |
|
| 10 |
COLLECTION_SEPARATOR = "."
|
| 11 |
PATHS_SEP = ":"
|
|
@@ -75,7 +75,7 @@ class GithubCatalog(LocalCatalog):
|
|
| 75 |
user = "IBM"
|
| 76 |
|
| 77 |
def prepare(self):
|
| 78 |
-
tag =
|
| 79 |
self.location = f"https://raw.githubusercontent.com/{self.user}/{self.repo}/{tag}/{self.repo_dir}"
|
| 80 |
|
| 81 |
def load(self, artifact_identifier: str):
|
|
|
|
| 4 |
|
| 5 |
import requests
|
| 6 |
|
|
|
|
| 7 |
from .artifact import Artifact, Artifactory
|
| 8 |
+
from .version import version
|
| 9 |
|
| 10 |
COLLECTION_SEPARATOR = "."
|
| 11 |
PATHS_SEP = ":"
|
|
|
|
| 75 |
user = "IBM"
|
| 76 |
|
| 77 |
def prepare(self):
|
| 78 |
+
tag = version
|
| 79 |
self.location = f"https://raw.githubusercontent.com/{self.user}/{self.repo}/{tag}/{self.repo_dir}"
|
| 80 |
|
| 81 |
def load(self, artifact_identifier: str):
|