Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def store_document_data(PDF_FILE):
|
|
71 |
|
72 |
doc_index = index.ntotal - 1
|
73 |
|
74 |
-
|
75 |
response = requests.post(API_URL_EMBEDDINGS,
|
76 |
files={"file": ("index.bin", f, "application/octet-stream")})
|
77 |
|
|
|
71 |
|
72 |
doc_index = index.ntotal - 1
|
73 |
|
74 |
+
with open(index_file, "rb") as f:
|
75 |
response = requests.post(API_URL_EMBEDDINGS,
|
76 |
files={"file": ("index.bin", f, "application/octet-stream")})
|
77 |
|