Skip to content

Commit

Permalink
Update IPFS-related code to use ES6 import/export syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
endomorphosis committed Jun 22, 2024
1 parent 1b76514 commit 905ac89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ipfs_transformers/ipfs_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/")
Expand All @@ -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()
Expand Down

0 comments on commit 905ac89

Please sign in to comment.