Spaces:
Running
Running
Remove redundant close button
Browse files- Removed the duplicate close button at the top of the document
- Kept the more intuitive close button next to the success message
- Streamlined user interface for document dismissal
app.py
CHANGED
@@ -1283,13 +1283,7 @@ with main_tab1:
|
|
1283 |
# No extra spacing needed as it will be managed programmatically
|
1284 |
metadata_placeholder = st.empty()
|
1285 |
|
1286 |
-
#
|
1287 |
-
if st.session_state.processed_document_active:
|
1288 |
-
if st.button("✕ Close Current Document", key="close_document_button_top", help="Clear current document and start over"):
|
1289 |
-
# Clear the processed document flag
|
1290 |
-
st.session_state.processed_document_active = False
|
1291 |
-
# Rerun to reset the page
|
1292 |
-
st.rerun()
|
1293 |
|
1294 |
# auto_process_sample is already initialized at the top of the function
|
1295 |
|
|
|
1283 |
# No extra spacing needed as it will be managed programmatically
|
1284 |
metadata_placeholder = st.empty()
|
1285 |
|
1286 |
+
# We now have a close button next to the success message, so we don't need one here
|
|
|
|
|
|
|
|
|
|
|
|
|
1287 |
|
1288 |
# auto_process_sample is already initialized at the top of the function
|
1289 |
|