saim1309 commited on
Commit
1da4626
·
verified ·
1 Parent(s): e7f736a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ from database import (
24
  if not OPENAI_API_KEY:
25
  raise ValueError("OPENAI_API_KEY not found in .env file")
26
 
27
- openai.api_key = OPENAI_API_KEY
28
 
29
 
30
  # Store session ID for the conversation
 
24
  if not OPENAI_API_KEY:
25
  raise ValueError("OPENAI_API_KEY not found in .env file")
26
 
27
+ openai.api_key = os.environ.get("OPENAI_API_KEY")
28
 
29
 
30
  # Store session ID for the conversation