Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -2
src/streamlit_app.py
CHANGED
|
@@ -186,6 +186,8 @@ if 'model' not in st.session_state:
|
|
| 186 |
|
| 187 |
st.session_state.started=False
|
| 188 |
|
|
|
|
|
|
|
| 189 |
|
| 190 |
|
| 191 |
|
|
@@ -258,14 +260,15 @@ if st.session_state.current_image is not None:
|
|
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
-
|
| 262 |
st.session_state.model.fit(image, label, epochs=1)
|
| 263 |
print("after model fit")
|
| 264 |
#st.session_state.unprocessed_image=None
|
| 265 |
print("before fetch_image")
|
| 266 |
fetch_image()
|
| 267 |
print("after fetch_image")
|
| 268 |
-
st.info(f"
|
|
|
|
| 269 |
|
| 270 |
|
| 271 |
|
|
|
|
| 186 |
|
| 187 |
st.session_state.started=False
|
| 188 |
|
| 189 |
+
st.session_state.which_pic=1
|
| 190 |
+
|
| 191 |
|
| 192 |
|
| 193 |
|
|
|
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
+
print("before model fit")
|
| 264 |
st.session_state.model.fit(image, label, epochs=1)
|
| 265 |
print("after model fit")
|
| 266 |
#st.session_state.unprocessed_image=None
|
| 267 |
print("before fetch_image")
|
| 268 |
fetch_image()
|
| 269 |
print("after fetch_image")
|
| 270 |
+
st.info(f"You clicked on last picture (picture {st.session_state.which_pic}): {label_input}")
|
| 271 |
+
st.session_state.which_pic=st.session_state.which_pic+1
|
| 272 |
|
| 273 |
|
| 274 |
|