Spaces:
Runtime error
Runtime error
Prathamesh1420
commited on
Commit
•
bec1a6d
1
Parent(s):
9a5e4ee
Update app.py
Browse files
app.py
CHANGED
@@ -4,14 +4,12 @@ from langchain_google_genai import ChatGoogleGenerativeAI
|
|
4 |
from dotenv import load_dotenv
|
5 |
import os
|
6 |
|
7 |
-
|
8 |
-
|
9 |
load_dotenv()
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
task="text-generation"
|
15 |
)
|
16 |
|
17 |
# Define Agents
|
|
|
4 |
from dotenv import load_dotenv
|
5 |
import os
|
6 |
|
7 |
+
# Load environment variables
|
|
|
8 |
load_dotenv()
|
9 |
|
10 |
+
# Initialize Google Gemini AI
|
11 |
+
llm = ChatGoogleGenerativeAI(
|
12 |
+
api_key=os.getenv('GOOGLE_API_KEY')
|
|
|
13 |
)
|
14 |
|
15 |
# Define Agents
|