Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,9 @@ st.title("MTSS Snapshot: Accessibility Image Textifier: `Alt Text`")
|
|
13 |
# Retrieve the OpenAI API key from Streamlit secrets and set it
|
14 |
openai.api_key = st.secrets["openai_api_key"]
|
15 |
|
|
|
|
|
|
|
16 |
# File uploader for images
|
17 |
uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
|
18 |
|
|
|
13 |
# Retrieve the OpenAI API key from Streamlit secrets and set it
|
14 |
openai.api_key = st.secrets["openai_api_key"]
|
15 |
|
16 |
+
# Set the OpenAI API key for the client
|
17 |
+
openai.api_key = api_key
|
18 |
+
|
19 |
# File uploader for images
|
20 |
uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
|
21 |
|