Spaces:
Paused
Paused
Update app.py
Browse files
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(
|
| 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 |
-
|
| 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 |
|