Update app.py
Browse files
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 |
-
|
| 16 |
-
|
|
|
|
| 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.
|