Tomatillo commited on
Commit
a582d42
·
verified ·
1 Parent(s): 356884b

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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)