mca183 commited on
Commit
65a9c81
1 Parent(s): f207bfc

adding `langchain-community`

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +1 -0
app.py CHANGED
@@ -1,7 +1,7 @@
1
- from langchain.document_loaders import HuggingFaceDatasetLoader
 
 
2
  from langchain.text_splitter import RecursiveCharacterTextSplitter
3
- from langchain.embeddings import HuggingFaceEmbeddings
4
- from langchain.vectorstores import FAISS
5
 
6
  from transformers import AutoTokenizer, pipeline
7
  import gradio as gr
 
1
+ from langchain_community.document_loaders import HuggingFaceDatasetLoader
2
+ from langchain_community.embeddings import HuggingFaceEmbeddings
3
+ from langchain_community.vectorstores import FAISS
4
  from langchain.text_splitter import RecursiveCharacterTextSplitter
 
 
5
 
6
  from transformers import AutoTokenizer, pipeline
7
  import gradio as gr
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
  langchain
 
2
  torch
3
  transformers[torch]
4
  sentence-transformers
 
1
  langchain
2
+ langchain-community
3
  torch
4
  transformers[torch]
5
  sentence-transformers