Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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):
|