bupa1018 commited on
Commit
ffc7b61
·
1 Parent(s): 125fa0c

Update embeddings.py

Browse files
Files changed (1) hide show
  1. embeddings.py +1 -0
embeddings.py CHANGED
@@ -1,4 +1,5 @@
1
  from langchain.embeddings import HuggingFaceEmbeddings
 
2
 
3
  def get_hf_embeddings(model_name=None):
4
  """Retrieve a Hugging Face embedding model using the specified model name.."""
 
1
  from langchain.embeddings import HuggingFaceEmbeddings
2
+ import torch
3
 
4
  def get_hf_embeddings(model_name=None):
5
  """Retrieve a Hugging Face embedding model using the specified model name.."""