Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 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,
|