From 905ac8911b1bbf1610e69e1aacfc6095b4f05e07 Mon Sep 17 00:00:00 2001 From: endomorphosis Date: Fri, 21 Jun 2024 23:27:53 -0700 Subject: [PATCH] Update IPFS-related code to use ES6 import/export syntax --- ipfs_transformers/ipfs_transformers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipfs_transformers/ipfs_transformers.py b/ipfs_transformers/ipfs_transformers.py index 3dd4477..26a69d6 100644 --- a/ipfs_transformers/ipfs_transformers.py +++ b/ipfs_transformers/ipfs_transformers.py @@ -49,6 +49,7 @@ def __init__(self, collection=None, meta=None): self.role = meta["role"] else: self.role = "leecher" + pass else: self.local_path = os.path.join(os.getenv("HOME") , ".cache/huggingface/") self.ipfs_path = os.path.join(os.getenv("HOME") , ".cache/ipfs/") @@ -60,6 +61,9 @@ def __init__(self, collection=None, meta=None): "s3_cfg": self.s3cfg, "role": self.role } + pass + pass + import ipfs_model_manager self.model_manager = ipfs_model_manager.ipfs_model_manager(resources=collection, meta=meta) self.model_manager.load_collection_cache()