mohamedsaeed823
commited on
Commit
•
63492c9
1
Parent(s):
48cbe41
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,8 @@ def recognize_gesture(image):
|
|
55 |
top_gesture = recognition_result.gestures[0][0]
|
56 |
|
57 |
# Return the gesture label and score
|
58 |
-
return dict(zip(eng_ara_mapping[top_gesture.category_name],
|
|
|
59 |
|
60 |
iface = gr.Interface(
|
61 |
fn=recognize_gesture,
|
|
|
55 |
top_gesture = recognition_result.gestures[0][0]
|
56 |
|
57 |
# Return the gesture label and score
|
58 |
+
return dict(zip(eng_ara_mapping[top_gesture.category_name], map(float,top_gesture.score)))
|
59 |
+
|
60 |
|
61 |
iface = gr.Interface(
|
62 |
fn=recognize_gesture,
|