Spaces:
Build error
Build error
SHAMIL SHAHBAZ AWAN commited on
Update app.py
Browse files18 unmodified lines19202122222324252627282937 unmodified lines676869667071727318 unmodified linesembedder = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
# PathsDOCUMENTS_FOLDER = "documents"file_path = "RagBaseApp/Atomic habits ( PDFDrive ).pdf"
with pdfplumber.open(file_path) as pdf: for page in pdf.pages: print(page.extract_text()) VECTORSTORE_FOLDER = "vectorstore"
# Initialize FAISS vector store37 unmodified lines st.success("Documents processed and vectorstore updated!")
# User interfacest.title("RAG Application with Streamlit")st.title("Atomic Habits RAG Application")
user_query = st.text_input("Enter your query:")
app.py+6-2