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