Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@
|
|
| 6 |
#from langchain_core.output_parsers import StrOutputParser # to transform the output of an LLM into a more usable format
|
| 7 |
#from langchain.schema.runnable import RunnableParallel, RunnablePassthrough
|
| 8 |
# importing HuggingFace model abstraction class from langchain
|
|
|
|
| 9 |
from langchain.llms import HuggingFaceEndpoint
|
| 10 |
from sentence_transformers import SentenceTransformer
|
| 11 |
|
|
|
|
| 6 |
#from langchain_core.output_parsers import StrOutputParser # to transform the output of an LLM into a more usable format
|
| 7 |
#from langchain.schema.runnable import RunnableParallel, RunnablePassthrough
|
| 8 |
# importing HuggingFace model abstraction class from langchain
|
| 9 |
+
from langchain_huggingface.llms import HuggingFacePipeline
|
| 10 |
from langchain.llms import HuggingFaceEndpoint
|
| 11 |
from sentence_transformers import SentenceTransformer
|
| 12 |
|