GilbertClaus commited on
Commit
6cc3623
·
1 Parent(s): fc10888

Update other.py

Browse files
Files changed (1) hide show
  1. other.py +8 -8
other.py CHANGED
@@ -54,14 +54,14 @@ def session(video_info, video_file, cut):
54
  st.text_area("Informasi Video", st.session_state.video_info, height=text_area_height)
55
  if video_file != '':
56
  st.video(st.session_state.video_file)
57
- with open(st.session_state.video_file, 'rb') as f:
58
- file_contents = f.read()
59
- st.download_button(
60
- label=f"Download {hasil}Video",
61
- data=file_contents,
62
- file_name=st.session_state.video_file.split("/")[-1].title().replace('Mp4', 'mp4'),
63
- mime='application/octet-stream'
64
- )
65
 
66
  def convert_size(size_bytes):
67
  units = ["B", "KB", "MB", "GB", "TB"]
 
54
  st.text_area("Informasi Video", st.session_state.video_info, height=text_area_height)
55
  if video_file != '':
56
  st.video(st.session_state.video_file)
57
+ with open(st.session_state.video_file, 'rb') as f:
58
+ file_contents = f.read()
59
+ st.download_button(
60
+ label=f"Download {hasil}Video",
61
+ data=file_contents,
62
+ file_name=st.session_state.video_file.split("/")[-1].title().replace('Mp4', 'mp4'),
63
+ mime='application/octet-stream'
64
+ )
65
 
66
  def convert_size(size_bytes):
67
  units = ["B", "KB", "MB", "GB", "TB"]