Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
import streamlit as st
|
2 |
from dotenv import load_dotenv
|
3 |
from PyPDF2 import PdfReader
|
4 |
-
from
|
5 |
-
#from
|
6 |
-
|
7 |
-
from
|
8 |
-
from
|
9 |
-
from
|
|
|
10 |
from htmlTemplates import css, bot_template, user_template
|
11 |
-
from
|
12 |
-
|
13 |
-
from langchain_community.vectorstores import FAISS
|
14 |
|
15 |
|
16 |
|
|
|
1 |
import streamlit as st
|
2 |
from dotenv import load_dotenv
|
3 |
from PyPDF2 import PdfReader
|
4 |
+
from langchain_community.text_splitter import CharacterTextSplitter # Updated
|
5 |
+
# from langchain_community.embeddings import OpenAIEmbeddings, HuggingFaceEmbeddings # Uncomment if needed
|
6 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings # Updated
|
7 |
+
from langchain_community.vectorstores import FAISS # Updated
|
8 |
+
from langchain_community.chat_models import ChatOpenAI # Updated
|
9 |
+
from langchain_community.memory import ConversationBufferMemory # Updated
|
10 |
+
from langchain_community.chains import ConversationalRetrievalChain # Updated
|
11 |
from htmlTemplates import css, bot_template, user_template
|
12 |
+
from langchain_community.llms import HuggingFaceHub # Updated
|
13 |
+
|
|
|
14 |
|
15 |
|
16 |
|