Skip to content

Commit 66599de

Browse files
authored
Merge pull request #46 from wiazur/patch-6
Updated endpoint
2 parents dcdf35a + fbe57e9 commit 66599de

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dotnet/ComputerVision/GetThumbnail/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.GetThumbnail
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.
15-
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");
16+
1617
static void Main(string[] args)
1718
{
1819
GetThumbnailSample.RunAsync(endpoint, subscriptionKey).Wait(5000);

0 commit comments

Comments
 (0)