Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,3 +4,19 @@ from langchain_community.document_loaders import PYPDFloader
|
|
4 |
from langchain.txt_sliter import recursiveCharacterTextSpliter
|
5 |
from langchain_community.vectorstores import chroma
|
6 |
from langchain.chains import ConversationalRetrievalChain
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
from langchain.txt_sliter import recursiveCharacterTextSpliter
|
5 |
from langchain_community.vectorstores import chroma
|
6 |
from langchain.chains import ConversationalRetrievalChain
|
7 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings
|
8 |
+
from langchain_community.llms mport HuggingFacePipeline
|
9 |
+
from langchain.chains import ConversationalRetrievalChain
|
10 |
+
from langchain.memory import ConversationBufferMemory
|
11 |
+
from langchain_community.llms import HuggingFaceEdpoint
|
12 |
+
from pathlib import path
|
13 |
+
import chromadb
|
14 |
+
from unidecode importunidecode
|
15 |
+
from transformers import Auto Tokenizer
|
16 |
+
import transformers
|
17 |
+
import torch
|
18 |
+
import tqdm
|
19 |
+
import acceierate
|
20 |
+
import re
|
21 |
+
defacult_persist_directry=`./chroma_HF/`
|
22 |
+
|