Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
import tempfile
|
3 |
import streamlit as st
|
4 |
from langchain_community.document_loaders import PyPDFLoader
|
5 |
-
from
|
6 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
7 |
from langchain_community.vectorstores import FAISS
|
8 |
from langchain_community.chains import RetrievalQA
|
|
|
2 |
import tempfile
|
3 |
import streamlit as st
|
4 |
from langchain_community.document_loaders import PyPDFLoader
|
5 |
+
from langchain.text_splitter import RecursiveCharacterTextSplitter # Correct import
|
6 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
7 |
from langchain_community.vectorstores import FAISS
|
8 |
from langchain_community.chains import RetrievalQA
|