fix
Browse files- Dockerfile +2 -1
- src/streamlit_app.py +13 -15
Dockerfile
CHANGED
|
@@ -11,7 +11,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
sudo \
|
| 12 |
procps \
|
| 13 |
htop \
|
| 14 |
-
vim
|
|
|
|
| 15 |
rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
RUN useradd -m -u 1000 user
|
|
|
|
| 11 |
sudo \
|
| 12 |
procps \
|
| 13 |
htop \
|
| 14 |
+
vim \
|
| 15 |
+
neovim &&
|
| 16 |
rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
RUN useradd -m -u 1000 user
|
src/streamlit_app.py
CHANGED
|
@@ -878,21 +878,19 @@ if st.session_state.ready_to_continue:
|
|
| 878 |
df = standardize_latlon(entry["df"])
|
| 879 |
st.dataframe(df.head(50))
|
| 880 |
|
| 881 |
-
|
| 882 |
-
|
| 883 |
-
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
|
| 889 |
-
|
| 890 |
-
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
|
| 894 |
-
key=f"download_rerun_{idx}"
|
| 895 |
-
)
|
| 896 |
|
| 897 |
|
| 898 |
|
|
|
|
| 878 |
df = standardize_latlon(entry["df"])
|
| 879 |
st.dataframe(df.head(50))
|
| 880 |
|
| 881 |
+
st.markdown("**📝 Dataset Introduction:**")
|
| 882 |
+
st.write(entry.get("summary", ""))
|
| 883 |
+
# 添加下载按钮
|
| 884 |
+
tmp_path = f"/tmp/subtask_{idx+1}_display.csv"
|
| 885 |
+
df.to_csv(tmp_path, index=False)
|
| 886 |
+
with open(tmp_path, "rb") as f:
|
| 887 |
+
st.download_button(
|
| 888 |
+
label="📥 Download dataset (CSV)",
|
| 889 |
+
data=f,
|
| 890 |
+
file_name=os.path.basename(tmp_path),
|
| 891 |
+
mime="text/csv",
|
| 892 |
+
key=f"download_rerun_{idx}"
|
| 893 |
+
)
|
|
|
|
|
|
|
| 894 |
|
| 895 |
|
| 896 |
|