Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -212,7 +212,7 @@ if st.session_state.current_image is not None:
|
|
| 212 |
if st.button("dog"):
|
| 213 |
print("dog pressed")
|
| 214 |
st.session_state.label_input="dog"
|
| 215 |
-
|
| 216 |
prediction = st.session_state.model.predict(np.array([st.session_state.current_image]))[0][0]
|
| 217 |
|
| 218 |
st.session_state.current_prediction = 'dog' if prediction > 0.5 else 'cat'
|
|
|
|
| 212 |
if st.button("dog"):
|
| 213 |
print("dog pressed")
|
| 214 |
st.session_state.label_input="dog"
|
| 215 |
+
print(f"SHAPE:{st.session_state.current_image.shape}")
|
| 216 |
prediction = st.session_state.model.predict(np.array([st.session_state.current_image]))[0][0]
|
| 217 |
|
| 218 |
st.session_state.current_prediction = 'dog' if prediction > 0.5 else 'cat'
|