GilbertClaus commited on
Commit
8f7e782
·
1 Parent(s): 70d1319

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -11,16 +11,16 @@ with st.sidebar:
11
  if selected == 'Youtube':
12
  st.title("YouTube Video Cutter")
13
  st.write("Potong dan download sebagian video YouTube.")
14
- video_link = st.text_input("Link Video")
15
  resolution = st.text_input("Resolusi", value='720')
16
- start_time = st.text_input("Start Time", value='00:00:00.000')
17
- end_time = st.text_input("End Time", value='00:01:00.000')
18
 
19
  if st.button("Download and Cut Video"):
20
  video_info, video_result, video_file = cut_video(video_link, resolution, start_time, end_time)
21
- num_lines = info.count('\n') + 1
22
  text_area_height = 25 * num_lines
23
- st.text_area("Hasil Tracing", video_info, height=text_area_height)
24
  st.video(video_result)
25
  with open(video_file, 'rb') as f:
26
  file_contents = f.read()
 
11
  if selected == 'Youtube':
12
  st.title("YouTube Video Cutter")
13
  st.write("Potong dan download sebagian video YouTube.")
14
+ video_link = st.text_input("Link Video", value='https://www.youtube.com/watch?v=ZGltvcmVSAk')
15
  resolution = st.text_input("Resolusi", value='720')
16
+ start_time = st.text_input("Start Time", value='00:07:12.500')
17
+ end_time = st.text_input("End Time", value='00:09:31.000')
18
 
19
  if st.button("Download and Cut Video"):
20
  video_info, video_result, video_file = cut_video(video_link, resolution, start_time, end_time)
21
+ num_lines = video_info.count('\n') + 1
22
  text_area_height = 25 * num_lines
23
+ st.text_area("Informasi Video", video_info, height=text_area_height)
24
  st.video(video_result)
25
  with open(video_file, 'rb') as f:
26
  file_contents = f.read()