mohamedsaeed823 commited on
Commit
b397cfb
1 Parent(s): 2b934bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,14 +55,14 @@ def recognize_gesture(image):
55
  top_gesture = recognition_result.gestures[0][0]
56
 
57
  # Return the gesture label and score
58
- return f"Gesture recognized: {eng_ara_mapping.pop(top_gesture.category_name)} ({top_gesture.score:.2f})"
59
 
60
  iface = gr.Interface(
61
  fn=recognize_gesture,
62
  inputs=["image"], # Input type: image
63
  outputs="text", # Output type: text
64
  title="Arabic Sign Language Character Recognition",
65
- description="Upload an image to recognize the gesture",
66
  )
67
 
68
  iface.launch(share=True) # Launch the interface in a web browser
 
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,
62
  inputs=["image"], # Input type: image
63
  outputs="text", # Output type: text
64
  title="Arabic Sign Language Character Recognition",
65
+ description="Upload an image to recognize the character",
66
  )
67
 
68
  iface.launch(share=True) # Launch the interface in a web browser