Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
-
from
|
5 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
6 |
-
from
|
7 |
-
from
|
8 |
-
from
|
9 |
from langchain.chains import ConversationalRetrievalChain
|
10 |
from langchain.memory import ConversationBufferMemory
|
11 |
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
+
from langchain_community.document_loaders import PyPDFLoader # Updated import
|
5 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
6 |
+
from langchain_community.vectorstores import Chroma # Updated import
|
7 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings # Updated import
|
8 |
+
from langchain_community.llms import HuggingFaceHub # Updated import
|
9 |
from langchain.chains import ConversationalRetrievalChain
|
10 |
from langchain.memory import ConversationBufferMemory
|
11 |
|