Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -242,6 +242,7 @@ if st.session_state.screen == 2:
|
|
| 242 |
st.rerun()
|
| 243 |
|
| 244 |
# plot predicted image
|
|
|
|
| 245 |
im_bgr = st.session_state.results[st.session_state.image_counter].plot() # BGR-order numpy array
|
| 246 |
im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
|
| 247 |
st.image(im_rgb)
|
|
|
|
| 242 |
st.rerun()
|
| 243 |
|
| 244 |
# plot predicted image
|
| 245 |
+
st.markdown(f"<h4 style='text-align: center; color: black;'>Image {str(st.session_state.image_counter + 1)}</h4>", unsafe_allow_html=True)
|
| 246 |
im_bgr = st.session_state.results[st.session_state.image_counter].plot() # BGR-order numpy array
|
| 247 |
im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
|
| 248 |
st.image(im_rgb)
|