ASL Detector YOLO

by atalaydenknalbantco.huggingface.atalaydenknalbant/asl-detector-yolo

  • Remote endpoint
  • 2 tools
  • MIT

Tools

  • ASL_Detector_YOLO_update_visibility Adjusts the visibility of Gradio components based on the selected input type. This function dynamically shows or hides the image and video input/output components in the Gradio interface to ensure only relevant fields are visible. Returns: tuple: A tuple of `gr.update` objects for the visibility of:, (image input, video input, image output, video output).
  • ASL_Detector_YOLO_yolo_inference Performs ASL letter detection inference on an image or video using a YOLO model. This function first downloads the specified YOLO model. It then applies the model to the input, which can be either an image or a video. For images, it returns an annotated image. For videos, it processes each frame and reconstructs an annotated video. Error handling for missing inputs is included, returning blank outputs with messages. If a user passes a file as an input, use the upload_file_to_gradio tool, if present, to upload the file to the gradio app and create a Gradio File Input. Then use the returned path as the input to the tool. Returns: tuple: A tuple containing two elements:, - PIL.Image.Image or None: The annotated image if `input_type` was "Image",, otherwise None., - str or None: The path to the annotated video file if `input_type` was "Video",, otherwise None.

As the server's own listing gives them. We never call a tool.