remove default data dirs (#121)

Co-authored-by: chetan <chetan@evolutionaryscale.ai>
This commit is contained in:
Chetan Mishra
2024-10-16 17:06:12 -04:00
committed by GitHub
parent 4a8f80704e
commit a46ffdc2fc

View File

@@ -98,13 +98,6 @@ TFIDF_VECTOR_SIZE = 58641
@staticmethod
@cache
def data_root():
# Try a few default directories
for path in [
"esm/data",
"esm/data",
]:
if (p := Path(path)).exists():
return p.parent
if "INFRA_PROVIDER" in os.environ:
return Path("")
# Try to download from hugginface if it doesn't exist