ProfessorLeVesseur commited on
Commit
f600388
·
verified ·
1 Parent(s): b3484d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ if show_details:
35
  analyze_button = st.button("Analyse the Image", type="secondary")
36
 
37
  # Check if an image has been uploaded, if the API key is available, and if the button has been pressed
38
- if uploaded_file is not None and api_key and analyze_button:
39
 
40
  with st.spinner("Analyzing the image ..."):
41
  # Encode the image
@@ -100,4 +100,4 @@ else:
100
  if not uploaded_file and analyze_button:
101
  st.warning("Please upload an image.")
102
  if not api_key:
103
- st.warning("Please enter your OpenAI API key.")")
 
35
  analyze_button = st.button("Analyse the Image", type="secondary")
36
 
37
  # Check if an image has been uploaded, if the API key is available, and if the button has been pressed
38
+ if uploaded_file is not None and analyze_button:
39
 
40
  with st.spinner("Analyzing the image ..."):
41
  # Encode the image
 
100
  if not uploaded_file and analyze_button:
101
  st.warning("Please upload an image.")
102
  if not api_key:
103
+ st.warning("Please enter your OpenAI API key.")