com3dian commited on
Commit
e7d6973
·
verified ·
1 Parent(s): 4c04979

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -108,6 +108,10 @@ def update_text():
108
  st.session_state.summ_text[st.session_state.page_index] = st.session_state.text_area_value
109
  st.session_state.current_text = st.session_state.text_area_value
110
 
 
 
 
 
111
  # Display page turner controls
112
  col1, col2, col3 = st.columns([1, 2, 1])
113
  with col1:
@@ -117,9 +121,6 @@ with col3:
117
  with col2:
118
  st.write(f"Page {st.session_state.page_index + 1} of {len(summ_text)}")
119
 
120
- # Display editable text box
121
- text = st.text_area("Edit Text", st.session_state.current_text, height=200, key="text_area_value", on_change=update_text)
122
-
123
  # Display HTML box
124
  st.markdown(render_html(st.session_state.current_text), unsafe_allow_html=True)
125
 
 
108
  st.session_state.summ_text[st.session_state.page_index] = st.session_state.text_area_value
109
  st.session_state.current_text = st.session_state.text_area_value
110
 
111
+
112
+ # Display editable text box
113
+ text = st.text_area("Edit Text", st.session_state.current_text, height=200, key="text_area_value", on_change=update_text)
114
+
115
  # Display page turner controls
116
  col1, col2, col3 = st.columns([1, 2, 1])
117
  with col1:
 
121
  with col2:
122
  st.write(f"Page {st.session_state.page_index + 1} of {len(summ_text)}")
123
 
 
 
 
124
  # Display HTML box
125
  st.markdown(render_html(st.session_state.current_text), unsafe_allow_html=True)
126