Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -9
src/streamlit_app.py
CHANGED
|
@@ -837,15 +837,10 @@ if st.session_state.ready_to_continue:
|
|
| 837 |
label="📥 Download full dataset (CSV)",
|
| 838 |
data=f,
|
| 839 |
file_name=os.path.basename(save_path),
|
| 840 |
-
mime="text/csv"
|
| 841 |
-
|
| 842 |
-
with open(save_path, "rb") as f:
|
| 843 |
-
st.download_button(
|
| 844 |
-
label="📥 Download full dataset (CSV)",
|
| 845 |
-
data=f,
|
| 846 |
-
file_name=os.path.basename(save_path),
|
| 847 |
-
mime="text/csv"
|
| 848 |
)
|
|
|
|
| 849 |
if 'progress_bar' in locals():
|
| 850 |
progress_bar.progress((idx + 1) / total)
|
| 851 |
|
|
@@ -874,7 +869,8 @@ if st.session_state.ready_to_continue:
|
|
| 874 |
label="📥 Download full dataset (CSV)",
|
| 875 |
data=f,
|
| 876 |
file_name=os.path.basename(tmp_path),
|
| 877 |
-
mime="text/csv"
|
|
|
|
| 878 |
)
|
| 879 |
|
| 880 |
# 检索完成后打标记
|
|
|
|
| 837 |
label="📥 Download full dataset (CSV)",
|
| 838 |
data=f,
|
| 839 |
file_name=os.path.basename(save_path),
|
| 840 |
+
mime="text/csv",
|
| 841 |
+
key=generate_download_button_key(df, idx)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 842 |
)
|
| 843 |
+
|
| 844 |
if 'progress_bar' in locals():
|
| 845 |
progress_bar.progress((idx + 1) / total)
|
| 846 |
|
|
|
|
| 869 |
label="📥 Download full dataset (CSV)",
|
| 870 |
data=f,
|
| 871 |
file_name=os.path.basename(tmp_path),
|
| 872 |
+
mime="text/csv",
|
| 873 |
+
key=generate_download_button_key(df, idx)
|
| 874 |
)
|
| 875 |
|
| 876 |
# 检索完成后打标记
|