ProfessorLeVesseur commited on
Commit
27546e6
·
verified ·
1 Parent(s): 0c34c2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -16,7 +16,8 @@ st.image('MTSS.ai_Logo.png', width=image_width)
16
 
17
  # st.title('MTSS:grey[.ai]')
18
  st.header('VisionText™ | Accessibility')
19
- st.subheader(':green[_Image Alt Text Generator_]')
 
20
 
21
  # Retrieve the OpenAI API Key from secrets
22
  openai.api_key = st.secrets["openai_api_key"]
@@ -28,7 +29,8 @@ openai.api_key = st.secrets["openai_api_key"]
28
  st.markdown("<span style='color:green; font-weight:bold;'>Please upload an image in the left sidebar.</span>", unsafe_allow_html=True)
29
 
30
  # Move the file uploader to the sidebar
31
- uploaded_file = st.sidebar.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
 
32
 
33
  if uploaded_file:
34
  # Display the uploaded image with specified width
 
16
 
17
  # st.title('MTSS:grey[.ai]')
18
  st.header('VisionText™ | Accessibility')
19
+ # st.subheader(':green[_Image Alt Text Generator_]')
20
+ st.subheader('Image Alt Text Generator')
21
 
22
  # Retrieve the OpenAI API Key from secrets
23
  openai.api_key = st.secrets["openai_api_key"]
 
29
  st.markdown("<span style='color:green; font-weight:bold;'>Please upload an image in the left sidebar.</span>", unsafe_allow_html=True)
30
 
31
  # Move the file uploader to the sidebar
32
+ # uploaded_file = st.sidebar.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
33
+ uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
34
 
35
  if uploaded_file:
36
  # Display the uploaded image with specified width