Nolist commited on
Commit
1d82f0c
·
verified ·
1 Parent(s): 600dc0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -639,13 +639,19 @@ if st.session_state.get("basic_done") and st.session_state.get("wound_type"):
639
  weight = st.text_input("Weight (kg)", help="Enter a number or leave blank")
640
  height = st.text_input("Height (cm)", help="Enter a number or leave blank")
641
  notes = st.text_area("Short notes (allergies, meds, conscious status...)", max_chars=500, height=80)
 
642
 
643
- col_a, col_b = st.columns([1, 3])
644
- with col_a:
645
- submit = st.form_submit_button("Save info & get advanced guidance")
646
- with col_b:
647
- # Use form_submit_button here (not st.button) because we are inside a form
648
- emergency_submit = st.form_submit_button("Emergency — Call local services")
 
 
 
 
 
649
 
650
  # Both submit buttons return True when they were clicked.
651
  if emergency_submit and not st.session_state.victim_saved:
 
639
  weight = st.text_input("Weight (kg)", help="Enter a number or leave blank")
640
  height = st.text_input("Height (cm)", help="Enter a number or leave blank")
641
  notes = st.text_area("Short notes (allergies, meds, conscious status...)", max_chars=500, height=80)
642
+ col1, col2 = st.columns(2)
643
 
644
+ with col1:
645
+ submit = st.form_submit_button(
646
+ "💾 Save info & get advanced guidance",
647
+ use_container_width=True
648
+ )
649
+
650
+ with col2:
651
+ emergency_submit = st.form_submit_button(
652
+ "🚨 Emergency — Call local services",
653
+ use_container_width=True
654
+ )
655
 
656
  # Both submit buttons return True when they were clicked.
657
  if emergency_submit and not st.session_state.victim_saved: