Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
# app_pixal_chat.py
|
| 2 |
-
with open("/usr/local/lib/python3.10/site-packages/langchain_experimental/tools/python/tool.py","r") as f:
|
| 3 |
-
abc=f.read()
|
| 4 |
-
with open("/usr/local/lib/python3.10/site-packages/langchain_experimental/tools/python/tool.py","w") as f:
|
| 5 |
-
f.write(abc.replace("langchain.","langchain_classic."))
|
| 6 |
import os, re, json, gradio as gr
|
|
|
|
| 7 |
from langchain_classic.memory import ConversationBufferMemory
|
| 8 |
from langchain_classic.agents import initialize_agent, AgentType, load_tools
|
| 9 |
from langchain_community.tools import Tool
|
|
|
|
| 1 |
# app_pixal_chat.py
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import os, re, json, gradio as gr
|
| 3 |
+
os.rename("/usr/local/lib/python3.10/site-packages/langchain_classic", "/usr/local/lib/python3.10/site-packages/langchain")
|
| 4 |
from langchain_classic.memory import ConversationBufferMemory
|
| 5 |
from langchain_classic.agents import initialize_agent, AgentType, load_tools
|
| 6 |
from langchain_community.tools import Tool
|