Spaces:
Sleeping
Sleeping
Update app/pages/utils_chapter/chapter_extraction.py
Browse files
app/pages/utils_chapter/chapter_extraction.py
CHANGED
|
@@ -62,7 +62,7 @@ def extract_content_if_needed():
|
|
| 62 |
|
| 63 |
# Extract chapters dictionary if not already present
|
| 64 |
if st.session_state.get("toc") and st.session_state.get("chapters_dict") is None:
|
| 65 |
-
with st.spinner("Extracting chapters from
|
| 66 |
extract_chapters_from_toc(st.session_state["toc"])
|
| 67 |
st.success("Chapters extracted successfully.")
|
| 68 |
|
|
|
|
| 62 |
|
| 63 |
# Extract chapters dictionary if not already present
|
| 64 |
if st.session_state.get("toc") and st.session_state.get("chapters_dict") is None:
|
| 65 |
+
with st.spinner("Extracting chapters from the table of contents. This may take up to 20 seconds"):
|
| 66 |
extract_chapters_from_toc(st.session_state["toc"])
|
| 67 |
st.success("Chapters extracted successfully.")
|
| 68 |
|