ProfessorLeVesseur commited on
Commit
27255d4
·
verified ·
1 Parent(s): 8e253a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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