Update app.py
Browse files
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('
|
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_API_KEY', '')
|
361 |
if not api_key:
|
362 |
return "OpenAI API key not configured. Please add the OPENAI_API_KEY to your environment variables."
|
363 |
|