Entz commited on
Commit
e188a38
·
verified ·
1 Parent(s): b6a9e3d

Upload index.py

Browse files
Files changed (1) hide show
  1. index.py +14 -1
index.py CHANGED
@@ -135,7 +135,20 @@ with tab2:
135
  st.title("AI-Powered Registration System")
136
 
137
  if st.session_state.summary:
138
- # [Summary code remains unchanged]
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  else:
140
  if st.session_state.current_question:
141
  with st.form(key=f"question_form_{st.session_state.question_number}"):
 
135
  st.title("AI-Powered Registration System")
136
 
137
  if st.session_state.summary:
138
+ st.success("Registration Complete!")
139
+ st.subheader("Summary")
140
+ for key, value in st.session_state.summary.items():
141
+ st.write(f"**{key}**: {value}")
142
+ new_value = st.text_input(f"Edit {key}", key=f"edit_{key}")
143
+ if st.button(f"Update {key}", key=f"update_{key}"):
144
+ edit_field(key, new_value)
145
+ col1, col2 = st.columns(2)
146
+ with col1:
147
+ if st.button("Next Registration", key="next_reg", on_click=start_registration):
148
+ pass
149
+ with col2:
150
+ if st.button("End Session", key="end_sess", on_click=start_registration):
151
+ pass
152
  else:
153
  if st.session_state.current_question:
154
  with st.form(key=f"question_form_{st.session_state.question_number}"):