Update imagesummary_fun.py
Browse files- imagesummary_fun.py +2 -3
imagesummary_fun.py
CHANGED
@@ -2,9 +2,8 @@ import base64
|
|
2 |
import requests
|
3 |
import os
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
openai_api_key = os.getenv('openai_api_key')
|
8 |
#openai_api_key = os.getenv('openai_api_key')
|
9 |
# Mock function to simulate image encoding and API call
|
10 |
def encode_image_to_base64(image_path):
|
|
|
2 |
import requests
|
3 |
import os
|
4 |
|
5 |
+
openai_api_key=os.environ.get("openai_api_key")
|
6 |
+
|
|
|
7 |
#openai_api_key = os.getenv('openai_api_key')
|
8 |
# Mock function to simulate image encoding and API call
|
9 |
def encode_image_to_base64(image_path):
|