jchen8000 commited on
Commit
b3dd23e
·
verified ·
1 Parent(s): 9cd737e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -12,13 +12,11 @@ from langchain_groq import ChatGroq
12
  from langchain_google_genai import ChatGoogleGenerativeAI
13
 
14
  # Initialize Groq Langchain chat object and conversation
15
- groq_chat = ChatGroq(
16
- groq_api_key=os.environ.get("GROQ_API_KEY"),
17
- )
18
  # Initialize Google Langchain chat object and conversation
19
- google_chat = ChatGoogleGenerativeAI(
20
- api_key=os.environ.get("GOOGLE_API_KEY"),
21
- )
22
 
23
 
24
  # Initialize memory to manages the chat history,
 
12
  from langchain_google_genai import ChatGoogleGenerativeAI
13
 
14
  # Initialize Groq Langchain chat object and conversation
15
+ groq_chat = ChatGroq(groq_api_key=os.environ.get("GROQ_API_KEY"))
16
+
 
17
  # Initialize Google Langchain chat object and conversation
18
+ os.environ["GOOGLE_API_KEY"] = os.environ.get("GOOGLE_API_KEY")
19
+ google_chat = ChatGoogleGenerativeAI()
 
20
 
21
 
22
  # Initialize memory to manages the chat history,