Spaces:
Sleeping
Sleeping
Update Face_Censoring.py
Browse files- Face_Censoring.py +15 -1
Face_Censoring.py
CHANGED
@@ -37,5 +37,19 @@ def censor_face(filePath):
|
|
37 |
|
38 |
output.release()
|
39 |
video.release()
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
return tfile2
|
|
|
37 |
|
38 |
output.release()
|
39 |
video.release()
|
40 |
+
st.write(tfile2.name)
|
41 |
+
st.write(tfile2)
|
42 |
+
result_video = open(tfile2.name, "rb")
|
43 |
+
vid_bytes = result_video.read()
|
44 |
+
#with open(tfile2.name, "rb") as file:
|
45 |
+
# btn = st.download_button(
|
46 |
+
# label="Download video",
|
47 |
+
# data=file,
|
48 |
+
# file_name=tfile2.name,
|
49 |
+
# mime="video/mp4"
|
50 |
+
# )
|
51 |
+
|
52 |
+
#video_file = open(tfile2.name, 'rb')
|
53 |
+
#video_bytes = video_file.read()
|
54 |
+
st.video(vid_bytes)
|
55 |
return tfile2
|