Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
from langchain_community.document_loaders import PyPDFLoader # Corrected import
|
4 |
-
from
|
5 |
from langchain_community.vectorstores import Chroma # Corrected import
|
6 |
from langchain.chains import ConversationalRetrievalChain # Note: Not from "langchain_community"
|
7 |
from langchain_community.embeddings import HuggingFaceEmbeddings # Corrected import
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
from langchain_community.document_loaders import PyPDFLoader # Corrected import
|
4 |
+
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
5 |
from langchain_community.vectorstores import Chroma # Corrected import
|
6 |
from langchain.chains import ConversationalRetrievalChain # Note: Not from "langchain_community"
|
7 |
from langchain_community.embeddings import HuggingFaceEmbeddings # Corrected import
|