Spaces:
Sleeping
Sleeping
SHAMIL SHAHBAZ AWAN
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,7 +70,7 @@ groq_client = Client(api_key=HUGGINGFACE_KEY)
|
|
| 70 |
embedder = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
|
| 71 |
|
| 72 |
# Define file path and vector store folder
|
| 73 |
-
file_path = "
|
| 74 |
VECTORSTORE_FOLDER = "vectorstore" # Folder where the FAISS index will be stored
|
| 75 |
|
| 76 |
# Ensure the vector store folder exists
|
|
@@ -139,7 +139,7 @@ def process_and_store_document(file_path):
|
|
| 139 |
st.error(f"Error saving the FAISS index: {e}")
|
| 140 |
|
| 141 |
# User interface for Streamlit
|
| 142 |
-
st.title("
|
| 143 |
|
| 144 |
# Button to trigger document processing
|
| 145 |
if st.button("Process PDF"):
|
|
|
|
| 70 |
embedder = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
|
| 71 |
|
| 72 |
# Define file path and vector store folder
|
| 73 |
+
file_path = "The Rise of Agentic AI.pdf" # File directly in the root directory of the app
|
| 74 |
VECTORSTORE_FOLDER = "vectorstore" # Folder where the FAISS index will be stored
|
| 75 |
|
| 76 |
# Ensure the vector store folder exists
|
|
|
|
| 139 |
st.error(f"Error saving the FAISS index: {e}")
|
| 140 |
|
| 141 |
# User interface for Streamlit
|
| 142 |
+
st.title("The Rise of Agentic AI RAG Application")
|
| 143 |
|
| 144 |
# Button to trigger document processing
|
| 145 |
if st.button("Process PDF"):
|