Docfile commited on
Commit
6227b47
Β·
verified Β·
1 Parent(s): f85c447

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- #from langchain_community.embeddings import HuggingFaceInstructEmbeddings
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'}