projektkush commited on
Commit
67f840e
·
verified ·
1 Parent(s): 7c599e8

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -25,15 +25,15 @@ from dotenv import load_dotenv
25
 
26
  load_dotenv( )
27
 
28
- # Load the decrypted JSON file or its content as environment variable
29
- decrypted_service_account_path = "/Users/kush/Desktop/DATA_BACKUP_FINALLY/2024_PROJECTS_SHOW_ALL/VISION_PROJECTS/google_genai_hack/decrypted.json"
 
 
 
30
 
31
- with open(decrypted_service_account_path, 'r') as f:
32
- service_account_info = json.load(f)
33
 
34
-
35
- # service_account_json = pybase64.b64decode(os.getenv("IMAGEN"))
36
- # service_account_info = json.loads(service_account_json)
37
  credentials = service_account.Credentials.from_service_account_info(service_account_info)
38
  project="elemental-shine-437217-t6"
39
  aiplatform.init(project=project, credentials=credentials)
 
25
 
26
  load_dotenv( )
27
 
28
+ # # Load the decrypted JSON file or its content as environment variable
29
+ # decrypted_service_account_path = "/Users/kush/Desktop/DATA_BACKUP_FINALLY/2024_PROJECTS_SHOW_ALL/VISION_PROJECTS/google_genai_hack/decrypted.json"
30
+ # decrypted_service_account_path
31
+ # with open(decrypted_service_account_path, 'r') as f:
32
+ # service_account_info = json.load(f)
33
 
 
 
34
 
35
+ service_account_json = pybase64.b64decode(os.getenv("IMAGEN"))
36
+ service_account_info = json.loads(service_account_json)
 
37
  credentials = service_account.Credentials.from_service_account_info(service_account_info)
38
  project="elemental-shine-437217-t6"
39
  aiplatform.init(project=project, credentials=credentials)