Overview
I created an inference app using Hugging Face Spaces and the YOLOv5 model (trained on the NDL-DocL dataset) introduced in the following article.
You can try it at the following URL.
https://huggingface.co/spaces/nakamura196/yolov5-ndl-layout
You can also download the source code and trained model from the following URL. We hope this serves as a reference when developing similar applications.
https://huggingface.co/spaces/nakamura196/yolov5-ndl-layout
The application development referenced the following Space.
https://huggingface.co/spaces/pytorch/YOLOv5
Usage
You can upload an image or select one from the Examples. The recognition results can be viewed as shown below.

Using the API
I created a notebook on how to use the API. We hope this is also helpful.
https://colab.research.google.com/github/nakamura196/ndl_ocr/blob/main/gradioのAPI利用.ipynb