You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
- [x] bug report
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
This issue is for a:
Minimal steps to reproduce
Try to execute https://github.com/Azure-Samples/cognitive-services-content-moderator-samples/blob/master/documentation-samples/python/text-moderation-quickstart-python.py using a Content Moderator resource deployed in Azure.
Any log messages given by the failure
The call to
client.text_moderation.screen_text
in the example fails withExpected/desired behavior
The call should complete without errors.
OS and Version?
Versions
Mention any other details that might be useful
The code can be fixed by wrapping the
TEXT
string in a file-like object as inI am happy to file a PR on this. However, I am not sure about what is the relationship of this repository with https://github.com/Azure-Samples/cognitive-services-python-sdk-samples/blob/master/samples/vision/content_moderator_text_moderation_samples.py (which may have Python examples in better/up-to-date shape).
This failure trickles in the Quickstart documentation too: https://docs.microsoft.com/en-us/azure/cognitive-services/content-moderator/text-moderation-quickstart-python shouldn't work without modifications.
The text was updated successfully, but these errors were encountered: