Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
0fc4dde
1
Parent(s):
7e0ab14
Update app.py
Browse files
app.py
CHANGED
@@ -6,19 +6,7 @@ import time
|
|
6 |
# Get the value of the openai_api_key from environment variable
|
7 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
8 |
|
9 |
-
|
10 |
-
from langchain import LLMMathChain, SerpAPIWrapper
|
11 |
-
from langchain.agents import AgentType, initialize_agent, load_tools
|
12 |
-
from langchain.chat_models import ChatOpenAI
|
13 |
-
from langchain.tools import BaseTool, StructuredTool, Tool, tool
|
14 |
-
from langchain.tools import MoveFileTool, format_tool_to_openai_function
|
15 |
-
from langchain.schema import (
|
16 |
-
AIMessage,
|
17 |
-
HumanMessage,
|
18 |
-
SystemMessage
|
19 |
-
)
|
20 |
-
from langchain.utilities import WikipediaAPIWrapper
|
21 |
-
from langchain.tools import AIPluginTool
|
22 |
|
23 |
def predict(inputs, chatbot):
|
24 |
|
|
|
6 |
# Get the value of the openai_api_key from environment variable
|
7 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
8 |
|
9 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
def predict(inputs, chatbot):
|
12 |
|