Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def pdf_changes(pdf_doc):
|
|
| 29 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
| 30 |
texts = text_splitter.split_documents(documents)
|
| 31 |
|
| 32 |
-
embeddings =
|
| 33 |
|
| 34 |
index_name = "chatbot"
|
| 35 |
index = pinecone.Index(index_name)
|
|
|
|
| 29 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
| 30 |
texts = text_splitter.split_documents(documents)
|
| 31 |
|
| 32 |
+
embeddings = HuggingFaceEmbeddings()
|
| 33 |
|
| 34 |
index_name = "chatbot"
|
| 35 |
index = pinecone.Index(index_name)
|