Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ def store_document_data(PDF_FILE):
|
|
| 57 |
faiss.write_index(index, index_file)
|
| 58 |
doc_index = index.ntotal - 1
|
| 59 |
with open(index_file, "rb") as f:
|
| 60 |
-
response = requests.post(
|
| 61 |
|
| 62 |
response = requests.post(API_URL_METADATA, data=doc_index)
|
| 63 |
|
|
|
|
| 57 |
faiss.write_index(index, index_file)
|
| 58 |
doc_index = index.ntotal - 1
|
| 59 |
with open(index_file, "rb") as f:
|
| 60 |
+
response = requests.post(API_URL_EMBEDDINGS, files={"file": f})
|
| 61 |
|
| 62 |
response = requests.post(API_URL_METADATA, data=doc_index)
|
| 63 |
|