Skip to content

Commit d62bdd5

Browse files
authored
Updated README
1 parent 0738bf7 commit d62bdd5

File tree

1 file changed

+8
-6
lines changed
  • ContentModerator/ContentModeratorQuickstart

1 file changed

+8
-6
lines changed

ContentModerator/ContentModeratorQuickstart/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,24 @@ This sample code shows you how to moderate images with Content Moderator.
2424

2525
## Prerequisites
2626

27-
- Java development environment
28-
- Maven
27+
- Java development environment : (IDE or command line)
28+
- Maven : make sure Maven is installed: https://maven.apache.org/download.cgi
29+
- Download Content Moderator SDK from Maven (for IDE): https://mvnrepository.com/artifact/com.microsoft.azure.cognitiveservices/azure-cognitiveservices-contentmoderator
2930

3031
## Setup
3132

3233
- [Clone this sample repository](https://github.com/Azure-Samples/cognitive-services-samples-pr.git).
3334

3435
## Modifying the Sample for your Configuration
3536

36-
1. Store your Content Moderator API key in the `AZURE_CONTENTMODERATOR_KEY` environment variable.
37-
2. Store your Azure endpoint in the `AZURE_ENDPOINT` environment variable. (optional)
37+
1. Store your Content Moderator API key in the `CONTENT_MODERATOR_SUBSCRIPTION_KEY` environment variable.
38+
2. Store your Content Moderator base endpoint in the `CONTENT_MODERATOR_ENDPOINT` environment variable. For example: `https://westus.api.cognitive.microsoft.com`. Be sure to use the correct region your subscription is in, in the URL.
3839

3940
## Building and Running the Sample
40-
41-
1. From the command line, navigate to the samples root directory: `...\cognitive-services-samples-pr\java\ContentModerator`.
41+
### From command line:
42+
1. Navigate to the example's root directory.
4243
2. Enter `mvn compile exec:java -Dexec.cleanupDaemonThreads=false`.
44+
Maven will automatically install all dependencies.
4345

4446
## Next steps
4547

0 commit comments

Comments
 (0)