Upload catalog.py with huggingface_hub
Browse files- catalog.py +5 -1
catalog.py
CHANGED
@@ -7,7 +7,11 @@ class Catalog(Artifactory):
|
|
7 |
name: str = None
|
8 |
location: str = None
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
class LocalCatalog(Catalog):
|
13 |
name: str = "local"
|
|
|
7 |
name: str = None
|
8 |
location: str = None
|
9 |
|
10 |
+
try:
|
11 |
+
import unitxt
|
12 |
+
catalog_path = os.path.dirname(unitxt.__file__) + "/catalog"
|
13 |
+
except ImportError:
|
14 |
+
catalog_path = os.path.dirname(__file__) + "/catalog"
|
15 |
|
16 |
class LocalCatalog(Catalog):
|
17 |
name: str = "local"
|