Spaces:
Sleeping
Sleeping
Update streamlit_app.py
Browse files- streamlit_app.py +3 -3
streamlit_app.py
CHANGED
@@ -146,9 +146,9 @@ with tab1:
|
|
146 |
st.success(f"**Prediction: {predicted_class}**")
|
147 |
st.info(f"Confidence: {confidence:.2%}")
|
148 |
|
149 |
-
if predicted_class in butterfly_info:
|
150 |
-
|
151 |
-
|
152 |
else:
|
153 |
st.warning("⚠️ **Image not clear - Unable to identify butterfly**")
|
154 |
st.info(f"Confidence too low: {confidence:.1%}")
|
|
|
146 |
st.success(f"**Prediction: {predicted_class}**")
|
147 |
st.info(f"Confidence: {confidence:.2%}")
|
148 |
|
149 |
+
#if predicted_class in butterfly_info:
|
150 |
+
# st.write("**Species Information:**")
|
151 |
+
# st.write(butterfly_info[predicted_class]["description"])
|
152 |
else:
|
153 |
st.warning("⚠️ **Image not clear - Unable to identify butterfly**")
|
154 |
st.info(f"Confidence too low: {confidence:.1%}")
|