mohamedsaeed823 commited on
Commit
6ae941d
1 Parent(s): b397cfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def recognize_gesture(image):
55
  top_gesture = recognition_result.gestures[0][0]
56
 
57
  # Return the gesture label and score
58
- return f"Character recognized: {eng_ara_mapping.pop(top_gesture.category_name)} probability: ({top_gesture.score:.2f})"
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 f"Character recognized: {eng_ara_mapping[top_gesture.category_name]} probability: ({top_gesture.score:.2f})"
59
 
60
  iface = gr.Interface(
61
  fn=recognize_gesture,