aashwinik commited on
Commit
6a40d06
1 Parent(s): d333a65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -11,24 +11,24 @@ if uploaded_file is not None:
11
  tfile = tempfile.NamedTemporaryFile(delete=False)
12
  tfile.write(uploaded_file.read())
13
 
14
- output=censor_face(tfile)
15
 
16
  video_file = open(tfile.name, 'rb')
17
  video_bytes = video_file.read()
18
  st.video(video_bytes)
19
 
20
- tfile2 = tempfile.NamedTemporaryFile(delete=False)
21
- tfile2.write(output)
22
-
23
- with open(tfile2.name, "rb") as file:
24
- btn = st.download_button(
25
- label="Download video",
26
- data=file,
27
- file_name=tfile2.name,
28
- mime="video/mp4"
29
- )
30
 
31
- video_file = open(tfile2.name, 'rb')
32
- video_bytes = video_file.read()
33
- st.video(video_bytes)
34
 
 
11
  tfile = tempfile.NamedTemporaryFile(delete=False)
12
  tfile.write(uploaded_file.read())
13
 
14
+
15
 
16
  video_file = open(tfile.name, 'rb')
17
  video_bytes = video_file.read()
18
  st.video(video_bytes)
19
 
20
+ #tfile2 = tempfile.NamedTemporaryFile(delete=False)
21
+ #tfile2.write(output)
22
+ output=censor_face(tfile)
23
+ #with open(tfile2.name, "rb") as file:
24
+ # btn = st.download_button(
25
+ # label="Download video",
26
+ # data=file,
27
+ # file_name=tfile2.name,
28
+ # mime="video/mp4"
29
+ # )
30
 
31
+ #video_file = open(tfile2.name, 'rb')
32
+ #video_bytes = video_file.read()
33
+ st.video(output)
34