Skip to content

Commit d454e36

Browse files
authored
Updated endpoint
1 parent 0d20f1e commit d454e36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dotnet/ComputerVision/DetectObjects/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.DetectObjects
1010

1111
class Program
1212
{
13-
public const string subscriptionKey = "<your training key here>"; //Insert your Cognitive Services subscription key here
14-
public const string endpoint = "https://westus.api.cognitive.microsoft.com"; // You must use the same Azure region that you generated your subscription keys for. Free trial subscription keys are generated in the westus region.
13+
// Add your Azure Computer Vision subscription key and endpoint to your environment variables
14+
public const string subscriptionKey = Environment.GetEnvironmentVariable("COMPUTER_VISION_SUBSCRIPTION_KEY");
15+
public const string endpoint = Environment.GetEnvironmentVariable("COMPUTER_VISION_ENDPOINT");
1516

1617
static void Main(string[] args)
1718
{

0 commit comments

Comments
 (0)