Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,9 @@ from langchain_classic.chains.conversational_retrieval.base import (
|
|
| 18 |
ConversationalRetrievalChain,
|
| 19 |
)
|
| 20 |
from htmlTemplates import css, bot_template, user_template
|
| 21 |
-
from langchain.llms import HuggingFaceHub
|
|
|
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
def get_pdf_text(pdf_docs):
|
|
|
|
| 18 |
ConversationalRetrievalChain,
|
| 19 |
)
|
| 20 |
from htmlTemplates import css, bot_template, user_template
|
| 21 |
+
#from langchain.llms import HuggingFaceHub
|
| 22 |
+
# update according to this: https://docs.langchain.com/oss/python/integrations/llms/huggingface_endpoint
|
| 23 |
+
from langchain_huggingface import HuggingFaceEndpoint
|
| 24 |
|
| 25 |
|
| 26 |
def get_pdf_text(pdf_docs):
|