Microsoft Image Moderation – Error when using own images

Try this :

imf_path = "<png path>"

evaluation = client.image_moderation.evaluate_file_input(
  media_type="image/png",
  cache_image=True,
  image_stream = open(imf_path , 'rb'),
)

Result:

enter image description here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top