Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def store_document_data(PDF_FILE):
|
|
49 |
embedding = embedding_model.encode([text]).astype(np.float32)
|
50 |
|
51 |
print("Embeddings generated")
|
52 |
-
print(f"sending to {
|
53 |
|
54 |
try:
|
55 |
index = faiss.IndexFlatL2(embedding.shape[1])
|
|
|
49 |
embedding = embedding_model.encode([text]).astype(np.float32)
|
50 |
|
51 |
print("Embeddings generated")
|
52 |
+
print(f"sending to {API_URL_EMBEDDINGS}")
|
53 |
|
54 |
try:
|
55 |
index = faiss.IndexFlatL2(embedding.shape[1])
|