saicharantej commited on
Commit
df7bcd4
·
verified ·
1 Parent(s): 9434e27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from ionic_langchain.tool import IonicTool
5
  from langchain.agents import AgentType, Tool
6
  from langchain.agents import initialize_agent
7
  from langchain_google_genai import ChatGoogleGenerativeAI
8
- from langchain.chat_models import ChatOpenAI
9
 
10
  ionic_tool = IonicTool().tool()
11
 
@@ -38,7 +38,7 @@ tools = [ionic_tool]
38
  agent = initialize_agent(
39
  tools=tools,
40
  llm = ChatGoogleGenerativeAI(model="gemini-pro",
41
- google_api_key="",
42
  convert_system_message_to_human = True,
43
  verbose = True),
44
  agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
 
5
  from langchain.agents import AgentType, Tool
6
  from langchain.agents import initialize_agent
7
  from langchain_google_genai import ChatGoogleGenerativeAI
8
+
9
 
10
  ionic_tool = IonicTool().tool()
11
 
 
38
  agent = initialize_agent(
39
  tools=tools,
40
  llm = ChatGoogleGenerativeAI(model="gemini-pro",
41
+ google_api_key=os.getenv('gemini_ai'),
42
  convert_system_message_to_human = True,
43
  verbose = True),
44
  agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,