David Chuan-En Lin commited on
Commit
db499bc
·
1 Parent(s): 75c9641
Files changed (1) hide show
  1. videogenic.py +5 -3
videogenic.py CHANGED
@@ -564,8 +564,9 @@ if st.session_state.progress == 2:
564
  # st.write(df_all)
565
  # highlight_length = 7.033
566
  # st.write(st.session_state.fps)
567
- selection = altair_component(draw_chart(df_all, st.session_state.mode))
568
- print(selection)
 
569
  if 'selection' not in st.session_state:
570
  st.session_state.selection = selection
571
  st.session_state.selection = selection
@@ -595,4 +596,5 @@ if st.session_state.progress == 2:
595
  left = st.session_state.selection['x'][0]
596
  right = st.session_state.selection['x'][1]
597
  with st.spinner('Generating highlight video...'):
598
- crop_video(st.session_state.df_all, left, right)
 
 
564
  # st.write(df_all)
565
  # highlight_length = 7.033
566
  # st.write(st.session_state.fps)
567
+ with st.spinner('Visualizing highlight scores...'):
568
+ selection = altair_component(draw_chart(df_all, st.session_state.mode))
569
+ print(selection)
570
  if 'selection' not in st.session_state:
571
  st.session_state.selection = selection
572
  st.session_state.selection = selection
 
596
  left = st.session_state.selection['x'][0]
597
  right = st.session_state.selection['x'][1]
598
  with st.spinner('Generating highlight video...'):
599
+ crop_video(st.session_state.df_all, left, right)
600
+ st.balloons()