File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,9 @@ static class Program
1515 // *** Update or verify the following values. ***
1616 // **********************************************
1717
18- // Replace the subscriptionKey string value with your valid subscription key.
19- const string subscriptionKey = "Enter key here" ;
20-
21- // Replace or verify the region.
22- //
23- // You must use the same region in your REST API call as you used to obtain your subscription keys.
24- // For example, if you obtained your subscription keys from the westus region, replace
25- // "westcentralus" in the URI below with "westus".
26- //
27- // NOTE: Free trial subscription keys are generated in the westcentralus region, so if you are using
28- // a free trial subscription key, you should not need to change this region.
29- const string uriBase = "https://westcentralus.api.cognitive.microsoft.com/face/v1.0/detect" ;
18+ // Add your Azure Face subscription key and endpoint to your environment variables
19+ const string subscriptionKey = Environment . GetEnvironmentVariable ( "FACE_SUBSCRIPTION_KEY" ) ;
20+ const string uriBase = Environment . GetEnvironmentVariable ( "FACE_ENDPOINT" ) ;
3021
3122
3223 static void Main ( )
You can’t perform that action at this time.
0 commit comments