Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -1
src/streamlit_app.py
CHANGED
@@ -69,4 +69,8 @@ if st.button("Overwrite Target Frame Annotations"):
|
|
69 |
)
|
70 |
st.session_state.success = "Target label updated and uploaded to Segments.ai!"
|
71 |
except Exception as e:
|
72 |
-
st.error(f"Error: {e}")
|
|
|
|
|
|
|
|
|
|
69 |
)
|
70 |
st.session_state.success = "Target label updated and uploaded to Segments.ai!"
|
71 |
except Exception as e:
|
72 |
+
st.error(f"Error: {e}")
|
73 |
+
|
74 |
+
# Always show the success message after the button handler
|
75 |
+
if st.session_state.success:
|
76 |
+
st.success(st.session_state.success)
|