com3dian commited on
Commit
3d2f753
·
verified ·
1 Parent(s): ff55c20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ if (summ_text is not None) or ('summ_text' in st.session_state):
105
 
106
  # Function to handle page turn
107
  def turn_page(direction):
108
- if direction == "next" and st.session_state.page_index < len(summ_text) - 1:
109
  st.session_state.page_index += 1
110
  elif direction == "prev" and st.session_state.page_index > 0:
111
  st.session_state.page_index -= 1
 
105
 
106
  # Function to handle page turn
107
  def turn_page(direction):
108
+ if direction == "next" and st.session_state.page_index < len(st.session_state.summ_text) - 1:
109
  st.session_state.page_index += 1
110
  elif direction == "prev" and st.session_state.page_index > 0:
111
  st.session_state.page_index -= 1