VishnuRamDebyez commited on
Commit
e88efbe
·
verified ·
1 Parent(s): b247ef1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,5 +1,3 @@
1
- # app.py
2
-
3
  import streamlit as st
4
  from langchain_core.runnables.history import RunnableWithMessageHistory
5
  from langchain_core.chat_history import BaseChatMessageHistory
@@ -14,7 +12,7 @@ from langchain.prompts.chat import MessagesPlaceholder, ChatPromptTemplate
14
  import os
15
 
16
  # Set Google API key
17
- os.environ["GOOGLE_API_KEY"] = "your_google_api_key_here" # Replace with your Google API key
18
 
19
  # Initialize the Gemini embeddings model and chat model
20
  gemini_embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
 
 
 
1
  import streamlit as st
2
  from langchain_core.runnables.history import RunnableWithMessageHistory
3
  from langchain_core.chat_history import BaseChatMessageHistory
 
12
  import os
13
 
14
  # Set Google API key
15
+ os.environ["GOOGLE_API_KEY"] = "TOKEN" # Replace with your Google API key
16
 
17
  # Initialize the Gemini embeddings model and chat model
18
  gemini_embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")