Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ from llama_index.core import (
|
|
16 |
)
|
17 |
|
18 |
|
19 |
-
from langchain.embeddings import HuggingFaceEmbeddings, HuggingFaceInstructEmbeddings
|
20 |
#from llama_index.embeddings.huggingface import HuggingFaceInstructEmbeddings
|
21 |
-
|
22 |
|
23 |
|
24 |
from g4f import Provider, models
|
@@ -38,7 +38,7 @@ embed_model = HuggingFaceInstructEmbeddings(
|
|
38 |
|
39 |
"""
|
40 |
|
41 |
-
from langchain.embeddings import HuggingFaceInstructEmbeddings
|
42 |
|
43 |
model_name = "hkunlp/instructor-large"
|
44 |
model_kwargs = {'device': 'cpu'}
|
|
|
16 |
)
|
17 |
|
18 |
|
19 |
+
#from langchain.embeddings import HuggingFaceEmbeddings, HuggingFaceInstructEmbeddings
|
20 |
#from llama_index.embeddings.huggingface import HuggingFaceInstructEmbeddings
|
21 |
+
from langchain_community.embeddings import HuggingFaceInstructEmbeddings
|
22 |
|
23 |
|
24 |
from g4f import Provider, models
|
|
|
38 |
|
39 |
"""
|
40 |
|
41 |
+
#from langchain.embeddings import HuggingFaceInstructEmbeddings
|
42 |
|
43 |
model_name = "hkunlp/instructor-large"
|
44 |
model_kwargs = {'device': 'cpu'}
|