Tesneem commited on
Commit
63bcb8b
·
verified ·
1 Parent(s): a9c8456

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -258,10 +258,9 @@ PROMPTS:
258
  )
259
 
260
  if use_openai:
261
- if not openai.api_key:
262
- st.error("❌ OPENAI_API_KEY is not set.")
263
- return "⚠️ OpenAI key missing."
264
-
265
  try:
266
  response = openai.ChatCompletion.create(
267
  model="gpt-3.5-turbo",
 
258
  )
259
 
260
  if use_openai:
261
+ if not openai.api_key:
262
+ st.error("❌ OPENAI_API_KEY is not set.")
263
+ return "⚠️ OpenAI key missing."
 
264
  try:
265
  response = openai.ChatCompletion.create(
266
  model="gpt-3.5-turbo",