Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from subprocess import Popen, PIPE as P
|
2 |
from langchain_experimental.tools.python.tool import PythonREPLTool as PYT
|
3 |
from langchain.agents import load_tools, create_structured_chat_agent as Agent,AgentExecutor as Ex, AgentType as Type
|
@@ -9,7 +10,7 @@ from langchain.schema import SystemMessage as SM,HumanMessage as HM, AIMessage a
|
|
9 |
from langchain import hub
|
10 |
import os
|
11 |
import torch
|
12 |
-
|
13 |
|
14 |
import importlib.util
|
15 |
import logging
|
|
|
1 |
+
from __future__ import annotations # type: ignore[import-not-found]
|
2 |
from subprocess import Popen, PIPE as P
|
3 |
from langchain_experimental.tools.python.tool import PythonREPLTool as PYT
|
4 |
from langchain.agents import load_tools, create_structured_chat_agent as Agent,AgentExecutor as Ex, AgentType as Type
|
|
|
10 |
from langchain import hub
|
11 |
import os
|
12 |
import torch
|
13 |
+
|
14 |
|
15 |
import importlib.util
|
16 |
import logging
|