Spaces:
Build error
Build error
updated the demo
Browse files- .gitattributes +1 -0
- app.py +2 -1
- man-woman.mp4 → woman-news-interview.mp4 +2 -2
.gitattributes
CHANGED
@@ -38,3 +38,4 @@ man-woman.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
38 |
model/lbfmodel.yaml filter=lfs diff=lfs merge=lfs -text
|
39 |
model/res10_300x300_ssd_iter_140000_fp16.caffemodel filter=lfs diff=lfs merge=lfs -text
|
40 |
model/res10_300x300_ssd_iter_140000.caffemodel filter=lfs diff=lfs merge=lfs -text
|
|
|
|
38 |
model/lbfmodel.yaml filter=lfs diff=lfs merge=lfs -text
|
39 |
model/res10_300x300_ssd_iter_140000_fp16.caffemodel filter=lfs diff=lfs merge=lfs -text
|
40 |
model/res10_300x300_ssd_iter_140000.caffemodel filter=lfs diff=lfs merge=lfs -text
|
41 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -166,6 +166,7 @@ def process_video(input_video_path, detect_threshold=0.9, blur_factor=3, pixel_s
|
|
166 |
# Define the Gradio interface
|
167 |
iface = gr.Interface(
|
168 |
fn=process_video,
|
|
|
169 |
inputs=[
|
170 |
gr.Video(label="Input Video", autoplay=True),
|
171 |
gr.Slider(minimum=0.5, maximum=0.99, value=0.9, label="Detection Confidence Threshold"),
|
@@ -175,7 +176,7 @@ iface = gr.Interface(
|
|
175 |
outputs=[gr.Video(label="Processed Video", autoplay=True)],
|
176 |
title="Face Blurring with OpenCV",
|
177 |
description="Upload a video file (MP4 or AVI). The app will detect faces, blur and pixelate them, and provide a processed video for download.",
|
178 |
-
examples=[["./input-video.mp4", 0.9, 3, 10], ["./
|
179 |
cache_examples=False,
|
180 |
)
|
181 |
|
|
|
166 |
# Define the Gradio interface
|
167 |
iface = gr.Interface(
|
168 |
fn=process_video,
|
169 |
+
theme=gr.themes.Soft(),
|
170 |
inputs=[
|
171 |
gr.Video(label="Input Video", autoplay=True),
|
172 |
gr.Slider(minimum=0.5, maximum=0.99, value=0.9, label="Detection Confidence Threshold"),
|
|
|
176 |
outputs=[gr.Video(label="Processed Video", autoplay=True)],
|
177 |
title="Face Blurring with OpenCV",
|
178 |
description="Upload a video file (MP4 or AVI). The app will detect faces, blur and pixelate them, and provide a processed video for download.",
|
179 |
+
examples=[["./input-video.mp4", 0.9, 3, 10], ["./woman-news-interview.mp4", 0.85, 4, 12]],
|
180 |
cache_examples=False,
|
181 |
)
|
182 |
|
man-woman.mp4 → woman-news-interview.mp4
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a37a0258b9757d3243a062fdaf847cb51ea28de94f6d00c8cfe7e254c30395b
|
3 |
+
size 1483126
|