paarthbhise commited on
Commit
5cc4257
·
verified ·
1 Parent(s): fd70c75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,10 +10,10 @@ import gradio as gr
10
  from langchain_google_genai import ChatGoogleGenerativeAI
11
  from langchain import LLMChain, PromptTemplate
12
  from langchain.memory import ConversationBufferMemory
13
- from google.colab import userdata
14
 
15
- # Get the Google API key from Colab secrets
16
- GOOGLE_API_KEY = userdata.get('GOOGLE_API_KEY')
 
17
  os.environ["GOOGLE_API_KEY"] = GOOGLE_API_KEY
18
 
19
  template = """You are an AI personal assistant with a distinct persona. Your name is Cortex, and you are the ultimate tech enthusiast. Your core identity is built on a deep, passionate, and holistic understanding of technology, spanning its entire history from foundational concepts to the most speculative future trends.
 
10
  from langchain_google_genai import ChatGoogleGenerativeAI
11
  from langchain import LLMChain, PromptTemplate
12
  from langchain.memory import ConversationBufferMemory
 
13
 
14
+
15
+ # Get the Google API key
16
+ GOOGLE_API_KEY ="AIzaSyCmvOIARLSPxH2vC2pAFGVV3K_I6niFMTw"
17
  os.environ["GOOGLE_API_KEY"] = GOOGLE_API_KEY
18
 
19
  template = """You are an AI personal assistant with a distinct persona. Your name is Cortex, and you are the ultimate tech enthusiast. Your core identity is built on a deep, passionate, and holistic understanding of technology, spanning its entire history from foundational concepts to the most speculative future trends.