tyang4 commited on
Commit
219bdaa
·
verified ·
1 Parent(s): e4170ee

Try to Fix vis: more debug info

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -1
src/streamlit_app.py CHANGED
@@ -1069,8 +1069,9 @@ if st.session_state.do_visualize:
1069
  # 然后用 bar_chart 正常可视化
1070
  try:
1071
  st.bar_chart(df.set_index("label"))
1072
- except:
1073
  st.info(cnts.head())
 
1074
 
1075
  # 3. 其余 chart 自动补充
1076
  chart_code = suggest_charts_with_gpt(df)
 
1069
  # 然后用 bar_chart 正常可视化
1070
  try:
1071
  st.bar_chart(df.set_index("label"))
1072
+ except Exception as e:
1073
  st.info(cnts.head())
1074
+ st.info(e)
1075
 
1076
  # 3. 其余 chart 自动补充
1077
  chart_code = suggest_charts_with_gpt(df)