keenthinker commited on
Commit
766efe2
·
verified ·
1 Parent(s): f948384

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -357,7 +357,7 @@ class ImageAnalysisTool(Tool):
357
  encoded_image = base64.b64encode(image_bytes).decode('utf-8')
358
 
359
  # Get API key from environment
360
- api_key = os.getenv('OPENAI_KEY', '')
361
  if not api_key:
362
  return "OpenAI API key not configured. Please add the OPENAI_API_KEY to your environment variables."
363
 
 
357
  encoded_image = base64.b64encode(image_bytes).decode('utf-8')
358
 
359
  # Get API key from environment
360
+ api_key = os.getenv('OPENAI_KEY')
361
  if not api_key:
362
  return "OpenAI API key not configured. Please add the OPENAI_API_KEY to your environment variables."
363