Spaces:
Sleeping
Sleeping
Commit
·
a60c427
1
Parent(s):
3d396fa
Update add.py
Browse files
app.py
CHANGED
@@ -28,14 +28,11 @@ def classify_video(video_path):
|
|
28 |
return dict(zip(top_label, top_label_confidence))
|
29 |
|
30 |
title = "Arabic Sign Language Recognition using VideoMAE"
|
31 |
-
|
32 |
-
examples = ["examples
|
33 |
-
"examples
|
34 |
-
"examples
|
35 |
demo = gr.Interface(fn=classify_video,title=title, inputs=gr.Video(), outputs=gr.Label(num_top_classes=3), examples=examples)
|
36 |
-
=======
|
37 |
-
demo = gr.Interface(fn=classify_video,title=title, inputs=gr.Video(sources=["upload"]), outputs=gr.Label(num_top_classes=3))
|
38 |
-
>>>>>>> 6e19139bdd46f974b55561a2c785c6b0edaeb348
|
39 |
|
40 |
if __name__ == "__main__":
|
41 |
demo.launch()
|
|
|
28 |
return dict(zip(top_label, top_label_confidence))
|
29 |
|
30 |
title = "Arabic Sign Language Recognition using VideoMAE"
|
31 |
+
|
32 |
+
examples = ["examples/alhamdulellah.mp4",
|
33 |
+
"examples/forsa sa3eda.mp4",
|
34 |
+
"examples/ma3a el salama.mp4",]
|
35 |
demo = gr.Interface(fn=classify_video,title=title, inputs=gr.Video(), outputs=gr.Label(num_top_classes=3), examples=examples)
|
|
|
|
|
|
|
36 |
|
37 |
if __name__ == "__main__":
|
38 |
demo.launch()
|