Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,6 @@ class MyApp:
|
|
| 27 |
print("PDF processed successfully!")
|
| 28 |
|
| 29 |
def build_vector_db(self) -> None:
|
| 30 |
-
"""Builds a vector database using the content of the PDF."""
|
| 31 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
| 32 |
# Generate embeddings for all document contents
|
| 33 |
self.embeddings = model.encode([doc["content"] for doc in self.documents])
|
|
|
|
| 27 |
print("PDF processed successfully!")
|
| 28 |
|
| 29 |
def build_vector_db(self) -> None:
|
|
|
|
| 30 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
| 31 |
# Generate embeddings for all document contents
|
| 32 |
self.embeddings = model.encode([doc["content"] for doc in self.documents])
|