Spaces:
Sleeping
Sleeping
Update app.py
Browse files19 unmodified lines2021222324254 unmodified lines303132333419 unmodified lines#tfile2 = tempfile.NamedTemporaryFile(delete=False)#tfile2.write(output)output=censor_face(tfile)#with open(tfile2.name, "rb") as file:# btn = st.download_button(# label="Download video",4 unmodified lines#video_file = open(tfile2.name, 'rb')#video_bytes = video_file.read()st.video(output)19 unmodified lines20212223242526274 unmodified lines323334353619 unmodified lines#tfile2 = tempfile.NamedTemporaryFile(delete=False)#tfile2.write(output)output=censor_face(tfile)result_video = open(output.name, "rb")vid_bytes = video_file.read()#with open(tfile2.name, "rb") as file:# btn = st.download_button(# label="Download video",4 unmodified lines#video_file = open(tfile2.name, 'rb')#video_bytes = video_file.read()st.video(vid_bytes)
app.py+3-1