zliang commited on
Commit
38a4fa7
1 Parent(s): 828e638

Update imagesummary_fun.py

Browse files
Files changed (1) hide show
  1. imagesummary_fun.py +2 -3
imagesummary_fun.py CHANGED
@@ -2,9 +2,8 @@ import base64
2
  import requests
3
  import os
4
 
5
- from dotenv import load_dotenv
6
- load_dotenv() # This loads the variables from .env
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):