tyang4 commited on
Commit
8fede8e
·
1 Parent(s): befc054
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. 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
- if not st.session_state.do_visualize: # 防止重复展示 summary 和按钮
882
- st.markdown("**📝 Dataset Introduction:**")
883
- st.write(entry.get("summary", ""))
884
-
885
- # 添加下载按钮
886
- tmp_path = f"/tmp/subtask_{idx+1}_display.csv"
887
- df.to_csv(tmp_path, index=False)
888
- with open(tmp_path, "rb") as f:
889
- st.download_button(
890
- label="📥 Download dataset (CSV)",
891
- data=f,
892
- file_name=os.path.basename(tmp_path),
893
- mime="text/csv",
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