Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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.")
|