Spaces:
Sleeping
Sleeping
Update app.py
Browse files16 unmodified lines17181920212223242526272829303116 unmodified linesvideo_bytes = video_file.read()st.video(video_bytes)with open(output, "rb") as file:btn = st.download_button(label="Download video",data=file,file_name=output,mime="video/mp4")video_file = open(output, 'rb')video_bytes = video_file.read()st.video(video_bytes)16 unmodified lines17181920212223242526272829303132333416 unmodified linesvideo_bytes = video_file.read()st.video(video_bytes)tfile2 = tempfile.NamedTemporaryFile(delete=False)tfile2.write(output.read())with open(tfile2.name, "rb") as file:btn = st.download_button(label="Download video",data=file,file_name=tfile2.name,mime="video/mp4")video_file = open(tfile2.name, 'rb')video_bytes = video_file.read()st.video(video_bytes)
app.py+6-3