Sangjun2 commited on
Commit
1065b75
Β·
verified Β·
1 Parent(s): fb42ef0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def predict_model1(image):
74
  return formatted_output
75
 
76
  # Set your OpenAI API key
77
- openai.api_key = "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"
78
 
79
  # Function to encode the image as base64
80
  def encode_image(image_path):
 
74
  return formatted_output
75
 
76
  # Set your OpenAI API key
77
+ openai.api_key = os.getenv('gpt_api_key')
78
 
79
  # Function to encode the image as base64
80
  def encode_image(image_path):