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
Copy file name to clipboardExpand all lines: ContentModerator/ContentModeratorQuickstart/README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,22 +24,24 @@ This sample code shows you how to moderate images with Content Moderator.
24
24
25
25
## Prerequisites
26
26
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
29
30
30
31
## Setup
31
32
32
33
-[Clone this sample repository](https://github.com/Azure-Samples/cognitive-services-samples-pr.git).
33
34
34
35
## Modifying the Sample for your Configuration
35
36
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.
38
39
39
40
## 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.
42
43
2. Enter `mvn compile exec:java -Dexec.cleanupDaemonThreads=false`.
44
+
Maven will automatically install all dependencies.
0 commit comments