Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
17 |
-
)
|
18 |
# Initialize Google Langchain chat object and conversation
|
19 |
-
|
20 |
-
|
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,
|