Spaces:
Sleeping
Sleeping
Bima Ardhia commited on
Commit ·
be7f306
1
Parent(s): e16b861
- user_agent/__init__.py +2 -4
user_agent/__init__.py
CHANGED
|
@@ -7,14 +7,12 @@ A package for interacting with Google Cloud Vertex AI RAG capabilities.
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
import vertexai
|
| 10 |
-
from dotenv import load_dotenv
|
| 11 |
|
| 12 |
# Load environment variables
|
| 13 |
-
load_dotenv()
|
| 14 |
|
| 15 |
# Get Vertex AI configuration from environment
|
| 16 |
-
PROJECT_ID = os.
|
| 17 |
-
LOCATION = os.
|
| 18 |
|
| 19 |
# Initialize Vertex AI at package load time
|
| 20 |
try:
|
|
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
import vertexai
|
|
|
|
| 10 |
|
| 11 |
# Load environment variables
|
|
|
|
| 12 |
|
| 13 |
# Get Vertex AI configuration from environment
|
| 14 |
+
PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT")
|
| 15 |
+
LOCATION = os.getenv("GOOGLE_CLOUD_LOCATION")
|
| 16 |
|
| 17 |
# Initialize Vertex AI at package load time
|
| 18 |
try:
|