Spaces:
Sleeping
Sleeping
roychao19477
commited on
Commit
·
75fe888
1
Parent(s):
2cb0aee
Test on lengths
Browse files
app.py
CHANGED
|
@@ -274,7 +274,8 @@ def extract_faces(video_file):
|
|
| 274 |
|
| 275 |
iface = gr.Interface(
|
| 276 |
fn=extract_faces,
|
| 277 |
-
inputs=gr.Video(label="Upload or record your video"),
|
|
|
|
| 278 |
outputs=[
|
| 279 |
gr.Video(label="Detected Face Only Video"),
|
| 280 |
#gr.Audio(label="Extracted Audio (16kHz)", type="filepath"),
|
|
|
|
| 274 |
|
| 275 |
iface = gr.Interface(
|
| 276 |
fn=extract_faces,
|
| 277 |
+
#inputs=gr.Video(label="Upload or record your video"),
|
| 278 |
+
inputs=gr.File(label="Upload your video", file_types=[".mp4"]),
|
| 279 |
outputs=[
|
| 280 |
gr.Video(label="Detected Face Only Video"),
|
| 281 |
#gr.Audio(label="Extracted Audio (16kHz)", type="filepath"),
|