Spaces:
Runtime error
Runtime error
Update embeddings.py
Browse files- 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.."""
|