Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def process_file(index_name, docs):
|
|
49 |
split_text = splter.split_documents(docs)
|
50 |
|
51 |
for document in split_text:
|
52 |
-
|
53 |
|
54 |
return list_pinecone(index_name)
|
55 |
|
|
|
49 |
split_text = splter.split_documents(docs)
|
50 |
|
51 |
for document in split_text:
|
52 |
+
Pinecone.from_documents([document], embeddings, index_name=index_name)
|
53 |
|
54 |
return list_pinecone(index_name)
|
55 |
|