Spaces:
Sleeping
Sleeping
Commit ·
22080a4
1
Parent(s): 7672c90
Fix Langchain prompt module imports and update dependencies
Browse files- main.py +2 -2
- requirements.txt +2 -0
main.py
CHANGED
|
@@ -11,8 +11,8 @@ from pydantic import BaseModel
|
|
| 11 |
from dotenv import load_dotenv
|
| 12 |
|
| 13 |
from langchain_openai import ChatOpenAI
|
| 14 |
-
from
|
| 15 |
-
from
|
| 16 |
from langchain.memory import ConversationBufferWindowMemory
|
| 17 |
from langchain_community.tools import DuckDuckGoSearchRun
|
| 18 |
|
|
|
|
| 11 |
from dotenv import load_dotenv
|
| 12 |
|
| 13 |
from langchain_openai import ChatOpenAI
|
| 14 |
+
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
|
| 15 |
+
from langchain_core.messages import HumanMessage, AIMessage, SystemMessage
|
| 16 |
from langchain.memory import ConversationBufferWindowMemory
|
| 17 |
from langchain_community.tools import DuckDuckGoSearchRun
|
| 18 |
|
requirements.txt
CHANGED
|
@@ -5,5 +5,7 @@ duckduckgo-search
|
|
| 5 |
python-dotenv
|
| 6 |
pydantic
|
| 7 |
langchain
|
|
|
|
| 8 |
langchain-community
|
| 9 |
python-multipart
|
|
|
|
|
|
| 5 |
python-dotenv
|
| 6 |
pydantic
|
| 7 |
langchain
|
| 8 |
+
langchain-core
|
| 9 |
langchain-community
|
| 10 |
python-multipart
|
| 11 |
+
requests
|