Update app.py
Browse files
app.py
CHANGED
@@ -40,6 +40,7 @@ def read_root(request: Request):
|
|
40 |
@app.post("/embed")
|
41 |
def embed_strings(request: EmbedRequest):
|
42 |
new_documents = request.texts
|
|
|
43 |
batch_size = 20
|
44 |
|
45 |
# Split the new_documents list into batches of 10 documents
|
|
|
40 |
@app.post("/embed")
|
41 |
def embed_strings(request: EmbedRequest):
|
42 |
new_documents = request.texts
|
43 |
+
print(f"Start embedding of {len(new_documents)} docs")
|
44 |
batch_size = 20
|
45 |
|
46 |
# Split the new_documents list into batches of 10 documents
|