SuhasGholkar commited on
Commit
ec8b966
·
verified ·
1 Parent(s): 5bd6e8a

Update src/admin_export.py

Browse files
Files changed (1) hide show
  1. src/admin_export.py +1 -1
src/admin_export.py CHANGED
@@ -235,7 +235,7 @@ def render_admin_export_tab(conn):
235
  ids = sorted(list(sel_ids))[:VIDEO_LIMIT]
236
  chosen = [r for r in rows if r["id"] in ids]
237
  try:
238
- video_path = export_records_to_video(chosen)
239
  st.success("Video ready.")
240
  st.download_button("Download MP4", open(video_path, "rb"), file_name="chat_export.mp4", mime="video/mp4", use_container_width=True)
241
  except Exception as e:
 
235
  ids = sorted(list(sel_ids))[:VIDEO_LIMIT]
236
  chosen = [r for r in rows if r["id"] in ids]
237
  try:
238
+ video_path = export_records_to_video(chosen, tts=True, min_secs_per_slide=4.0)
239
  st.success("Video ready.")
240
  st.download_button("Download MP4", open(video_path, "rb"), file_name="chat_export.mp4", mime="video/mp4", use_container_width=True)
241
  except Exception as e: