Spaces:
Runtime error
Runtime error
adding `langchain-community`
Browse files- app.py +3 -3
- requirements.txt +1 -0
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
from
|
|
|
|
|
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
|