Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ from langchain.agents import initialize_agent, AgentType
|
|
14 |
|
15 |
# initialize OpenAI chatbot agent
|
16 |
llm = ChatOpenAI(temperature=0)
|
17 |
-
agent = initialize_agent(
|
18 |
|
19 |
# define function to get chatbot response
|
20 |
def get_response(text):
|
|
|
14 |
|
15 |
# initialize OpenAI chatbot agent
|
16 |
llm = ChatOpenAI(temperature=0)
|
17 |
+
agent = initialize_agent(llm, AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION)
|
18 |
|
19 |
# define function to get chatbot response
|
20 |
def get_response(text):
|