Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,10 +26,10 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
|
|
26 |
from langchain_core.messages import HumanMessage, SystemMessage
|
27 |
from langchain_core.output_parsers import StrOutputParser
|
28 |
from langchain_core.runnables import RunnablePassthrough
|
29 |
-
from langchain_openai import ChatOpenAI
|
30 |
# langchain_community imports
|
31 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
32 |
from langchain_community.llms import HuggingFacePipeline
|
|
|
33 |
|
34 |
|
35 |
# Retrieve environment variables.
|
|
|
26 |
from langchain_core.messages import HumanMessage, SystemMessage
|
27 |
from langchain_core.output_parsers import StrOutputParser
|
28 |
from langchain_core.runnables import RunnablePassthrough
|
|
|
29 |
# langchain_community imports
|
30 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
31 |
from langchain_community.llms import HuggingFacePipeline
|
32 |
+
from langchain_community.chat_models import ChatOpenAI
|
33 |
|
34 |
|
35 |
# Retrieve environment variables.
|