jchen8000 commited on
Commit
2e7924a
·
verified ·
1 Parent(s): 8df017e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 "Sample PDFs indexed successfully!"
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):