Spaces:
Paused
Paused
Commit ·
fc10888
1
Parent(s): 59c6b2d
Update other.py
Browse files
other.py
CHANGED
|
@@ -52,7 +52,8 @@ def session(video_info, video_file, cut):
|
|
| 52 |
num_lines = st.session_state.video_info.count('\n') + 1
|
| 53 |
text_area_height = 25 * num_lines
|
| 54 |
st.text_area("Informasi Video", st.session_state.video_info, height=text_area_height)
|
| 55 |
-
|
|
|
|
| 56 |
with open(st.session_state.video_file, 'rb') as f:
|
| 57 |
file_contents = f.read()
|
| 58 |
st.download_button(
|
|
|
|
| 52 |
num_lines = st.session_state.video_info.count('\n') + 1
|
| 53 |
text_area_height = 25 * num_lines
|
| 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(
|