Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,9 @@ from langchain.agents import initialize_agent, Tool
|
|
| 34 |
from langchain_community.llms import HuggingFaceHub
|
| 35 |
#from langchain_community.tools import PythonREPL
|
| 36 |
|
| 37 |
-
from langchain_community.tools.python.tool import PythonREPLTool
|
|
|
|
|
|
|
| 38 |
|
| 39 |
# (Keep Constants as is)
|
| 40 |
# --- Constants ---
|
|
|
|
| 34 |
from langchain_community.llms import HuggingFaceHub
|
| 35 |
#from langchain_community.tools import PythonREPL
|
| 36 |
|
| 37 |
+
#from langchain_community.tools.python.tool import PythonREPLTool
|
| 38 |
+
from langchain_community.tools.python_repl import PythonREPLTool
|
| 39 |
+
|
| 40 |
|
| 41 |
# (Keep Constants as is)
|
| 42 |
# --- Constants ---
|