Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Fix pipeline reliability: pages/Admin.py
Browse files- pages/Admin.py +2 -1
pages/Admin.py
CHANGED
|
@@ -502,7 +502,7 @@ if authentication_status:
|
|
| 502 |
|
| 503 |
# HuggingFace upload
|
| 504 |
skip_upload = st.session_state.pop("pipeline_skip_upload", False)
|
| 505 |
-
if not skip_upload
|
| 506 |
st.markdown("---")
|
| 507 |
st.markdown("### Uploading to HuggingFace")
|
| 508 |
with st.spinner("Syncing data to cloud..."):
|
|
@@ -529,6 +529,7 @@ if authentication_status:
|
|
| 529 |
update_cmd = [
|
| 530 |
sys.executable, "update_data.py",
|
| 531 |
"--pull", "--overwrite-pdf", "--continue-on-error",
|
|
|
|
| 532 |
]
|
| 533 |
|
| 534 |
env = os.environ.copy()
|
|
|
|
| 502 |
|
| 503 |
# HuggingFace upload
|
| 504 |
skip_upload = st.session_state.pop("pipeline_skip_upload", False)
|
| 505 |
+
if not skip_upload:
|
| 506 |
st.markdown("---")
|
| 507 |
st.markdown("### Uploading to HuggingFace")
|
| 508 |
with st.spinner("Syncing data to cloud..."):
|
|
|
|
| 529 |
update_cmd = [
|
| 530 |
sys.executable, "update_data.py",
|
| 531 |
"--pull", "--overwrite-pdf", "--continue-on-error",
|
| 532 |
+
"--skip-upload",
|
| 533 |
]
|
| 534 |
|
| 535 |
env = os.environ.copy()
|