Spaces:
Sleeping
Sleeping
MohamedMotaz
commited on
Commit
•
2d25f8d
1
Parent(s):
f4f95c7
final deployment
Browse files
app.py
CHANGED
@@ -13,10 +13,14 @@ def process_file(file, is_video , skip = 1 , add_audio = True):
|
|
13 |
|
14 |
iface = gr.Interface(
|
15 |
fn=process_file,
|
16 |
-
inputs=[gr.File(label="Upload File"), gr.Checkbox(label="Is Video?") , gr.Slider(1, 20,
|
17 |
outputs=gr.File(label="Processed File"),
|
18 |
title="Face Emotion Detection",
|
19 |
-
description="Upload an image or video to detect and annotate emotions.
|
|
|
|
|
|
|
|
|
20 |
)
|
21 |
|
22 |
if __name__ == "__main__":
|
|
|
13 |
|
14 |
iface = gr.Interface(
|
15 |
fn=process_file,
|
16 |
+
inputs=[gr.File(label="Upload File"), gr.Checkbox(label="Is Video?") , gr.Slider(1, 20, 1, value=10, label="Frame Skip"), gr.Checkbox(label="Add Audio?")],
|
17 |
outputs=gr.File(label="Processed File"),
|
18 |
title="Face Emotion Detection",
|
19 |
+
description="""Upload an image or video to detect and annotate emotions. <br>
|
20 |
+
- For videos, the detected faces will be annotated with emotions and the audio can be optionally added back.
|
21 |
+
You can also skip some frames to speed up the process. <br>
|
22 |
+
- For images, the detected faces will be annotated with emotions. <br>
|
23 |
+
"""
|
24 |
)
|
25 |
|
26 |
if __name__ == "__main__":
|