Classification interface for images

Your format is correct, but I think the problem is this: By default, modern browsers will block images and other resources from local file paths for security reasons. So if you open the developer tools, you probably see something like "blocked local resource". See this thread for more details:

To work around this, you could either serve the files locally on a different port, upload them so an S3 bucket or something similar, or use Prodigy's fetch_images helper that takes a stream of image tasks and converts all file paths (local and URLs!) to base64-encoded data URIs.

from prodigy.components.preprocess import fetch_images
stream = fetch_images(stream)

Just keep in mind that this will add the image data to the annotation tasks and store it all in the database. So if you're working with lots of really large images, your database can potentially get quite large, too.