com3dian commited on
Commit
2e05f78
·
verified ·
1 Parent(s): 380962e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,7 +86,7 @@ if 'page_index' not in st.session_state:
86
 
87
  # Function to handle page turn
88
  def turn_page(direction):
89
- if direction == "next" and st.session_state.page_index < len(text_list) - 1:
90
  st.session_state.page_index += 1
91
  elif direction == "prev" and st.session_state.page_index > 0:
92
  st.session_state.page_index -= 1
@@ -107,7 +107,7 @@ text = st.text_area("Edit Text", summ_text[st.session_state.page_index], height=
107
  st.markdown(render_html(text), unsafe_allow_html=True)
108
 
109
  # Update list with edited text
110
- text_list[st.session_state.page_index] = text
111
 
112
 
113
 
 
86
 
87
  # Function to handle page turn
88
  def turn_page(direction):
89
+ if direction == "next" and st.session_state.page_index < len(summ_text) - 1:
90
  st.session_state.page_index += 1
91
  elif direction == "prev" and st.session_state.page_index > 0:
92
  st.session_state.page_index -= 1
 
107
  st.markdown(render_html(text), unsafe_allow_html=True)
108
 
109
  # Update list with edited text
110
+ summ_text[st.session_state.page_index] = text
111
 
112
 
113