mangalathkedar commited on
Commit
f05dcdf
·
verified ·
1 Parent(s): b88d03b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -14,11 +14,6 @@ load_dotenv()
14
  # Initialize OpenAI client with error handling
15
  try:
16
  client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
17
- # Add this debugging code right after your API key initialization
18
- if os.getenv('OPENAI_API_KEY'):
19
- st.write("API key found")
20
- else:
21
- st.write("No API key found")
22
  if not os.getenv('OPENAI_API_KEY'):
23
  st.error("OpenAI API key not found. Please check your .env file.")
24
  st.stop()
 
14
  # Initialize OpenAI client with error handling
15
  try:
16
  client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
 
 
 
 
 
17
  if not os.getenv('OPENAI_API_KEY'):
18
  st.error("OpenAI API key not found. Please check your .env file.")
19
  st.stop()