Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,10 +27,13 @@ load_dotenv( )
|
|
| 27 |
|
| 28 |
# Load the decrypted JSON file or its content as environment variable
|
| 29 |
decrypted_service_account_path = "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)
|
|
|
|
| 27 |
|
| 28 |
# Load the decrypted JSON file or its content as environment variable
|
| 29 |
decrypted_service_account_path = "decrypted.json"
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
+
# Get the secret from environment variables
|
| 32 |
+
decrypter_json = os.getenv("DECRYPTER_JSON")
|
| 33 |
+
|
| 34 |
+
# with open(decrypted_service_account_path, 'r') as f:
|
| 35 |
+
# service_account_info = json.load(f)
|
| 36 |
+
service_account_info = json.loads(decrypter_json)
|
| 37 |
|
| 38 |
# service_account_json = pybase64.b64decode(os.getenv("IMAGEN"))
|
| 39 |
# service_account_info = json.loads(service_account_json)
|