Spaces:
Running
Running
kendrickfff
commited on
Commit
•
89b4d20
1
Parent(s):
1c76710
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,9 @@ from langchain_google_genai.chat_models import ChatGoogleGenerativeAI
|
|
5 |
# Set the path to the service account key
|
6 |
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "./firm-catalyst-437006-s4-407500537db5.json"
|
7 |
|
8 |
-
# Initialize the language model
|
9 |
-
|
|
|
10 |
|
11 |
# Chat function
|
12 |
def chat_with_gemini(user_input, chat_history):
|
|
|
5 |
# Set the path to the service account key
|
6 |
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "./firm-catalyst-437006-s4-407500537db5.json"
|
7 |
|
8 |
+
# Initialize the language model with required parameters
|
9 |
+
# Replace 'your-model-name' with the actual model you intend to use
|
10 |
+
llm = ChatGoogleGenerativeAI(model='your-model-name')
|
11 |
|
12 |
# Chat function
|
13 |
def chat_with_gemini(user_input, chat_history):
|