kgauvin603 commited on
Commit
9ea277f
·
verified ·
1 Parent(s): cf8f67f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -21,22 +21,22 @@ openrouter = openai.OpenAI(api_key=openrouter_key, base_url="https://openrouter.
21
 
22
  # --- OCI Object Storage: Explicit Fixed Configuration ---
23
 
 
24
  oci_config = {
25
- "user": "ocid1.user.oc1..aaaaaaaatiwkdcralqexwxw674imk7mevxrhz7tnyn6iljn5empw4k4gva3q",
26
- "tenancy": "ocid1.tenancy.oc1..aaaaaaaaxtkkpxc5qwgpwx7y2wt5pinegyzea4uacnmck7iamsssjvw4s3bq",
27
- "fingerprint": "b9:60:f9:d2:c8:6b:90:a6:81:0d:66:a3:6b:70:9d:d5",
28
- "region": "us-ashburn-1",
 
29
  }
30
- # --- Fixed namespace and bucket name ---
31
- namespace = "orasenatdpltdevopsnetw02"
32
- bucket_name = "OracleTANGO"
33
 
34
- # --- Instantiate the Object Storage client ---
 
 
35
  try:
36
  object_storage = oci.object_storage.ObjectStorageClient(oci_config)
37
- print("✅ OCI Object Storage client initialized successfully.")
38
  except Exception as e:
39
- print("Failed to initialize OCI Object Storage client:", e)
40
 
41
  """
42
  # --- OCI Object Storage Setup ---
 
21
 
22
  # --- OCI Object Storage: Explicit Fixed Configuration ---
23
 
24
+ # === OCI Object Storage Setup ===
25
  oci_config = {
26
+ "user": os.environ.get("OCI_USER"),
27
+ "tenancy": os.environ.get("OCI_TENANCY"),
28
+ "fingerprint": os.environ.get("OCI_FINGERPRINT"),
29
+ "region": os.environ.get("OCI_REGION"),
30
+ "key_content": os.environ.get("OCI_PRIVATE_KEY")
31
  }
 
 
 
32
 
33
+ namespace = os.environ.get("OCI_NAMESPACE")
34
+ bucket_name = os.environ.get("OCI_BUCKET_NAME")
35
+
36
  try:
37
  object_storage = oci.object_storage.ObjectStorageClient(oci_config)
 
38
  except Exception as e:
39
+ print("Failed to initialize OCI Object Storage client:", e)
40
 
41
  """
42
  # --- OCI Object Storage Setup ---