Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -8,13 +8,6 @@ from langgraph.prebuilt import ToolNode, tools_condition
|
|
| 8 |
from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
| 9 |
|
| 10 |
|
| 11 |
-
# load the system prompt from the file
|
| 12 |
-
with open("prompt.txt", "r", encoding="utf-8") as f:
|
| 13 |
-
system_prompt = f.read()
|
| 14 |
-
|
| 15 |
-
# System message
|
| 16 |
-
sys_msg = SystemMessage(content=system_prompt)
|
| 17 |
-
|
| 18 |
HUGGINGFACEHUB_API_TOKEN = getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 19 |
|
| 20 |
# Making the agent
|
|
|
|
| 8 |
from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
| 9 |
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
HUGGINGFACEHUB_API_TOKEN = getenv("HUGGINGFACEHUB_API_TOKEN")
|
| 12 |
|
| 13 |
# Making the agent
|