SHAMIL SHAHBAZ AWAN commited on
Commit
57c6937
·
verified ·
1 Parent(s): 2a6bb58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -19,7 +19,11 @@ groq_client = Client(api_key=HUGGINGFACE_KEY)
19
  embedder = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
20
 
21
  # Paths
22
- DOCUMENTS_FOLDER = "documents"
 
 
 
 
23
  VECTORSTORE_FOLDER = "vectorstore"
24
 
25
  # Initialize FAISS vector store
@@ -63,7 +67,7 @@ if st.button("Process Documents"):
63
  st.success("Documents processed and vectorstore updated!")
64
 
65
  # User interface
66
- st.title("RAG Application with Streamlit")
67
 
68
  user_query = st.text_input("Enter your query:")
69
 
 
19
  embedder = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
20
 
21
  # Paths
22
+ file_path = "RagBaseApp/Atomic habits ( PDFDrive ).pdf"
23
+
24
+ with pdfplumber.open(file_path) as pdf:
25
+ for page in pdf.pages:
26
+ print(page.extract_text())
27
  VECTORSTORE_FOLDER = "vectorstore"
28
 
29
  # Initialize FAISS vector store
 
67
  st.success("Documents processed and vectorstore updated!")
68
 
69
  # User interface
70
+ st.title("Atomic Habits RAG Application")
71
 
72
  user_query = st.text_input("Enter your query:")
73