Elron commited on
Commit
1bc4890
1 Parent(s): 7df39f6

Upload catalog.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. catalog.py +5 -1
catalog.py CHANGED
@@ -7,7 +7,11 @@ class Catalog(Artifactory):
7
  name: str = None
8
  location: str = None
9
 
10
- catalog_path = os.path.dirname(__file__) + "/catalog"
 
 
 
 
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"