Spaces:
Sleeping
Sleeping
Thomas Bartlett
commited on
Commit
·
15864dd
1
Parent(s):
fc8b565
refactor: reorganize import statements for Calculator tool
Browse files
app.py
CHANGED
|
@@ -6,10 +6,10 @@ import requests, textwrap
|
|
| 6 |
|
| 7 |
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint
|
| 8 |
|
| 9 |
-
from langchain_community.tools import DuckDuckGoSearchRun
|
| 10 |
from langchain.agents import initialize_agent
|
| 11 |
from langchain_core.prompts import ChatPromptTemplate
|
| 12 |
-
from langchain_community.tools import Calculator
|
| 13 |
|
| 14 |
|
| 15 |
# --- Constants ---
|
|
|
|
| 6 |
|
| 7 |
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint
|
| 8 |
|
| 9 |
+
from langchain_community.tools import DuckDuckGoSearchRun
|
| 10 |
from langchain.agents import initialize_agent
|
| 11 |
from langchain_core.prompts import ChatPromptTemplate
|
| 12 |
+
from langchain_community.tools.calculator.tool import Calculator
|
| 13 |
|
| 14 |
|
| 15 |
# --- Constants ---
|