Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def index_pdf(pdf):
|
|
81 |
# Store the embeddings in the vector store
|
82 |
vector_store = FAISS.from_documents(texts, embeddings)
|
83 |
|
84 |
-
return "PDF indexed successfully!"
|
85 |
|
86 |
def load_sample_pdf():
|
87 |
global vector_store
|
@@ -103,7 +103,7 @@ def load_sample_pdf():
|
|
103 |
# Store the embeddings in the vector store
|
104 |
vector_store = FAISS.from_documents(texts, embeddings)
|
105 |
|
106 |
-
return "
|
107 |
|
108 |
|
109 |
def format_docs(docs):
|
|
|
81 |
# Store the embeddings in the vector store
|
82 |
vector_store = FAISS.from_documents(texts, embeddings)
|
83 |
|
84 |
+
return "PDF(s) indexed successfully!"
|
85 |
|
86 |
def load_sample_pdf():
|
87 |
global vector_store
|
|
|
103 |
# Store the embeddings in the vector store
|
104 |
vector_store = FAISS.from_documents(texts, embeddings)
|
105 |
|
106 |
+
return "PDFs indexed successfully!"
|
107 |
|
108 |
|
109 |
def format_docs(docs):
|