Spaces:
Build error
Build error
SHAMIL SHAHBAZ AWAN commited on
Update app.py
Browse files69 unmodified lines7071727374757662 unmodified lines13914014114214314414569 unmodified linesembedder = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')# Define file path and vector store folderfile_path = "Atomic habits ( PDFDrive ).pdf" # File directly in the root directory of the appVECTORSTORE_FOLDER = "vectorstore" # Folder where the FAISS index will be stored# Ensure the vector store folder exists62 unmodified linesst.error(f"Error saving the FAISS index: {e}")# User interface for Streamlitst.title("Atomic Habits RAG Application")# Button to trigger document processingif st.button("Process PDF"):69 unmodified lines7071727374757662 unmodified lines13914014114214314414569 unmodified linesembedder = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')# Define file path and vector store folderfile_path = "The Rise of Agentic AI.pdf" # File directly in the root directory of the appVECTORSTORE_FOLDER = "vectorstore" # Folder where the FAISS index will be stored# Ensure the vector store folder exists62 unmodified linesst.error(f"Error saving the FAISS index: {e}")# User interface for Streamlitst.title("The Rise of Agentic AI RAG Application")# Button to trigger document processingif st.button("Process PDF"):
app.py+2-2