Spaces:
Sleeping
Sleeping
mohamedsaeed823
commited on
Commit
•
6e19139
1
Parent(s):
3c67a2a
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ phrase_map = {
|
|
13 |
'I am sorry': "انا اسف",
|
14 |
'Not bad': "مش وحش ",
|
15 |
'Salam aleikum': "السلام عليكم",
|
16 |
-
'Sorry
|
17 |
'Thanks': "شكرا"
|
18 |
}
|
19 |
def classify_video(video_path):
|
@@ -27,7 +27,8 @@ def classify_video(video_path):
|
|
27 |
top_label_confidence = [result[0]['score'], result[1]['score'], result[2]['score']]
|
28 |
return dict(zip(top_label, top_label_confidence))
|
29 |
|
30 |
-
|
|
|
31 |
|
32 |
if __name__ == "__main__":
|
33 |
demo.launch()
|
|
|
13 |
'I am sorry': "انا اسف",
|
14 |
'Not bad': "مش وحش ",
|
15 |
'Salam aleikum': "السلام عليكم",
|
16 |
+
'Sorry': "لو سمحت",
|
17 |
'Thanks': "شكرا"
|
18 |
}
|
19 |
def classify_video(video_path):
|
|
|
27 |
top_label_confidence = [result[0]['score'], result[1]['score'], result[2]['score']]
|
28 |
return dict(zip(top_label, top_label_confidence))
|
29 |
|
30 |
+
title = "Arabic Sign Language Recognition using VideoMAE"
|
31 |
+
demo = gr.Interface(fn=classify_video,title=title, inputs=gr.Video(sources=["upload"]), outputs=gr.Label(num_top_classes=3))
|
32 |
|
33 |
if __name__ == "__main__":
|
34 |
demo.launch()
|