vijusudhi commited on
Commit
cf4a95f
·
verified ·
1 Parent(s): 94e488a

Update embedding_model.py

Browse files
Files changed (1) hide show
  1. embedding_model.py +2 -2
embedding_model.py CHANGED
@@ -72,7 +72,7 @@ class EmbeddingModel(models.Transformer):
72
  json.dump(self.get_config_dict(), f, indent=4)
73
 
74
  @staticmethod
75
- def load(load_dir: str, **kwargs) -> "EmbeddingModel":
76
  with open(os.path.join(load_dir, "config.json")) as fIn:
77
  config = json.load(fIn)
78
- return EmbeddingModel(**config, **kwargs)
 
72
  json.dump(self.get_config_dict(), f, indent=4)
73
 
74
  @staticmethod
75
+ def load(load_dir: str, *args, **kwargs) -> "EmbeddingModel":
76
  with open(os.path.join(load_dir, "config.json")) as fIn:
77
  config = json.load(fIn)
78
+ return EmbeddingModel(**config, *args, **kwargs)