TheChesireCat
commited on
Commit
·
46d186a
1
Parent(s):
d80e881
Test changes
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def streamlit_video_detect(uploaded_file, centerface, threshold, replacewith, ma
|
|
74 |
|
75 |
# Empty the progress bar after completion
|
76 |
my_bar.empty()
|
77 |
-
|
78 |
# If keep_audio is checked, use FFmpeg to overlay the original audio on the processed video
|
79 |
if keep_audio:
|
80 |
st.write("Overlaying audio. Please wait...")
|
@@ -111,7 +111,7 @@ def get_file_type(uploaded_file):
|
|
111 |
def main():
|
112 |
st.title("Media Anonymizer")
|
113 |
|
114 |
-
uploaded_files = st.file_uploader("Upload media files", accept_multiple_files=True)
|
115 |
keep_audio = st.checkbox("Keep Audio")
|
116 |
|
117 |
for uploaded_file in uploaded_files:
|
|
|
74 |
|
75 |
# Empty the progress bar after completion
|
76 |
my_bar.empty()
|
77 |
+
os.system(f"ffmpeg -y -i {processed_video_temp_path} -vcodec libx264 {processed_video_temp_path}")
|
78 |
# If keep_audio is checked, use FFmpeg to overlay the original audio on the processed video
|
79 |
if keep_audio:
|
80 |
st.write("Overlaying audio. Please wait...")
|
|
|
111 |
def main():
|
112 |
st.title("Media Anonymizer")
|
113 |
|
114 |
+
uploaded_files = st.file_uploader("Upload media files (images,videos)", accept_multiple_files=True)
|
115 |
keep_audio = st.checkbox("Keep Audio")
|
116 |
|
117 |
for uploaded_file in uploaded_files:
|