tstone87 commited on
Commit
821fb88
·
verified ·
1 Parent(s): 54949b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -66,6 +66,8 @@ with st.sidebar:
66
  )
67
  progress_text = st.empty()
68
  progress_bar = st.progress(0)
 
 
69
 
70
  ###############################################################################
71
  # MAIN TITLE
@@ -225,7 +227,7 @@ if example_option == "None" and source_file and source_file.type.split('/')[0] !
225
  # Always display the download button if a processed video is ready.
226
  ###############################################################################
227
  if st.session_state["shortened_video_ready"] and st.session_state["shortened_video_data"]:
228
- st.download_button(
229
  label="Download Processed Video",
230
  data=st.session_state["shortened_video_data"],
231
  file_name="processed_video.mp4",
 
66
  )
67
  progress_text = st.empty()
68
  progress_bar = st.progress(0)
69
+ # Placeholder for the download button so it persists.
70
+ download_placeholder = st.empty()
71
 
72
  ###############################################################################
73
  # MAIN TITLE
 
227
  # Always display the download button if a processed video is ready.
228
  ###############################################################################
229
  if st.session_state["shortened_video_ready"] and st.session_state["shortened_video_data"]:
230
+ download_placeholder.download_button(
231
  label="Download Processed Video",
232
  data=st.session_state["shortened_video_data"],
233
  file_name="processed_video.mp4",