Skip to content

Commit f565690

Browse files
Merge pull request #478 from jinruishao/patch-7
Update quickstart-protected-material-code.md
2 parents 0ac592f + 6965eed commit f565690

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-services/content-safety/quickstart-protected-material-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ curl --location --request POST '<endpoint>/contentsafety/text:detectProtectedMat
5050
--header 'Ocp-Apim-Subscription-Key: <your_subscription_key>' \
5151
--header 'Content-Type: application/json' \
5252
--data-raw '{
53-
"code": "to everyone, the best things in life are free. the stars belong to everyone, they gleam there for you and me. the flowers in spring, the robins that sing, the sunbeams that shine"
53+
"code": "python import pygame pygame.init() win = pygame.display.set_mode((500, 500)) pygame.display.set_caption(My Game) x = 50 y = 50 width = 40 height = 60 vel = 5 run = True while run: pygame.time.delay(100) for event in pygame.event.get(): if event.type == pygame.QUIT: run = False keys = pygame.key.get_pressed() if keys[pygame.K_LEFT] and x > vel: x -= vel if keys[pygame.K_RIGHT] and x < 500 - width - vel: x += vel if keys[pygame.K_UP] and y > vel: y -= vel if keys[pygame.K_DOWN] and y < 500 - height - vel: y += vel win.fill((0, 0, 0)) pygame.draw.rect(win, (255, 0, 0), (x, y, width, height)) pygame.display.update() pygame.quit()"
5454
}'
5555
```
5656
The below fields must be included in the url:
@@ -120,4 +120,4 @@ If you want to clean up and remove an Azure AI services subscription, you can de
120120
## Related content
121121

122122
* [Protected material detection concepts](./concepts/protected-material.md)
123-
* Configure filters for each category and test on datasets using [Content Safety Studio](studio-quickstart.md), export the code and deploy.
123+
* Configure filters for each category and test on datasets using [Content Safety Studio](studio-quickstart.md), export the code and deploy.

0 commit comments

Comments
 (0)