po5302006 commited on
Commit
8275072
1 Parent(s): 93ad764

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +1 -1
Home.py CHANGED
@@ -26,7 +26,7 @@ def read_api_key_from_secrets(file_path='secrets.json'):
26
  # Example usage
27
  try:
28
  # key = read_api_key_from_secrets()
29
- os.environ[key]
30
  openai.api_key = key
31
  os.environ['OPENAI_API_KEY'] = key
32
  print(f"OpenAI API Key Found")
 
26
  # Example usage
27
  try:
28
  # key = read_api_key_from_secrets()
29
+ key = os.environ[key]
30
  openai.api_key = key
31
  os.environ['OPENAI_API_KEY'] = key
32
  print(f"OpenAI API Key Found")