Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,8 @@ llm = ChatGroq(
|
|
| 26 |
# ... (Keep your imports and LLM initialization the same)
|
| 27 |
|
| 28 |
# 4. Load Math Tools
|
| 29 |
-
#
|
|
|
|
| 30 |
from langchain_core.messages import SystemMessage
|
| 31 |
|
| 32 |
system_message = SystemMessage(
|
|
|
|
| 26 |
# ... (Keep your imports and LLM initialization the same)
|
| 27 |
|
| 28 |
# 4. Load Math Tools
|
| 29 |
+
# Load the tools FIRST
|
| 30 |
+
tools = load_tools(["llm-math"], llm=llm)
|
| 31 |
from langchain_core.messages import SystemMessage
|
| 32 |
|
| 33 |
system_message = SystemMessage(
|