Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def pdf_changes(pdf_doc):
|
|
| 23 |
separators=['\n\n', '\n', '(?=>\. )', ' ', '']
|
| 24 |
)
|
| 25 |
docs = text_splitter.split_documents(pages)
|
| 26 |
-
embeddings =
|
| 27 |
db = FAISS.from_documents(docs, embeddings)
|
| 28 |
|
| 29 |
llm=HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":1, "max_length":1000000})
|
|
|
|
| 23 |
separators=['\n\n', '\n', '(?=>\. )', ' ', '']
|
| 24 |
)
|
| 25 |
docs = text_splitter.split_documents(pages)
|
| 26 |
+
embeddings = HuggingFaceEmbeddings()
|
| 27 |
db = FAISS.from_documents(docs, embeddings)
|
| 28 |
|
| 29 |
llm=HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":1, "max_length":1000000})
|