Chia Woon Yap
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,8 @@ import uuid # For generating unique filenames
|
|
| 17 |
|
| 18 |
# Updated imports to address LangChain deprecation warnings:
|
| 19 |
from langchain_groq import ChatGroq
|
| 20 |
-
from langchain.schema import HumanMessage
|
|
|
|
| 21 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 22 |
from langchain_community.vectorstores import Chroma
|
| 23 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
|
|
|
| 17 |
|
| 18 |
# Updated imports to address LangChain deprecation warnings:
|
| 19 |
from langchain_groq import ChatGroq
|
| 20 |
+
#from langchain.schema import HumanMessage
|
| 21 |
+
from langchain_core.messages import HumanMessage
|
| 22 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 23 |
from langchain_community.vectorstores import Chroma
|
| 24 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|