naveenvenkatesh commited on
Commit
96d1ed4
1 Parent(s): 4b3539b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -24,6 +24,7 @@ from langchain_experimental.agents.agent_toolkits.csv.base import create_csv_age
24
  from langchain.agents.agent_types import AgentType
25
  # from langchain.agents import create_csv_agent
26
  from langchain import OpenAI, LLMChain
 
27
 
28
  class ChatDocumentQA:
29
  def __init__(self) -> None:
@@ -139,7 +140,7 @@ class ChatDocumentQA:
139
  # memory,tools,prompt = self.create_memory_for_csv_qa(tools)
140
  # agent_chain = self.create_agent_chain_for_csv_qa(memory,tools,prompt)
141
  agent_chain = create_csv_agent(
142
- AzureChatOpenAI(azure_deployment = "ChatGPT"),
143
  file_path,
144
  verbose=True,
145
  agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
 
24
  from langchain.agents.agent_types import AgentType
25
  # from langchain.agents import create_csv_agent
26
  from langchain import OpenAI, LLMChain
27
+ from openai import AzureOpenAI
28
 
29
  class ChatDocumentQA:
30
  def __init__(self) -> None:
 
140
  # memory,tools,prompt = self.create_memory_for_csv_qa(tools)
141
  # agent_chain = self.create_agent_chain_for_csv_qa(memory,tools,prompt)
142
  agent_chain = create_csv_agent(
143
+ AzureOpenAI(azure_deployment = "ChatGPT"),
144
  file_path,
145
  verbose=True,
146
  agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION,