Spaces:
Running
on
Zero
Running
on
Zero
roychao19477
commited on
Commit
·
f9f66c4
1
Parent(s):
8ce542f
First commit
Browse files
app.py
CHANGED
@@ -127,14 +127,17 @@ def extract_faces(video_file):
|
|
127 |
).run(overwrite_output=True)
|
128 |
|
129 |
|
130 |
-
return output_path
|
131 |
|
132 |
iface = gr.Interface(
|
133 |
fn=extract_faces,
|
134 |
inputs=gr.Video(label="Upload or record your video"),
|
135 |
-
outputs=
|
|
|
|
|
|
|
136 |
title="Face Detector",
|
137 |
-
description="Upload or record a video. We'll crop face regions and return a face-only video."
|
138 |
)
|
139 |
|
140 |
iface.launch()
|
|
|
127 |
).run(overwrite_output=True)
|
128 |
|
129 |
|
130 |
+
return output_path, audio_path
|
131 |
|
132 |
iface = gr.Interface(
|
133 |
fn=extract_faces,
|
134 |
inputs=gr.Video(label="Upload or record your video"),
|
135 |
+
outputs=[
|
136 |
+
gr.Video(label="Detected Face Only Video"),
|
137 |
+
gr.Audio(label="Extracted Audio (16kHz)", type="filepath"),
|
138 |
+
],
|
139 |
title="Face Detector",
|
140 |
+
description="Upload or record a video. We'll crop face regions and return a face-only video and its 16kHz audio."
|
141 |
)
|
142 |
|
143 |
iface.launch()
|