Skip to content

Commit

Permalink
Merge pull request #46 from wiazur/patch-6
Browse files Browse the repository at this point in the history
Updated endpoint
  • Loading branch information
wiazur authored Sep 26, 2019
2 parents dcdf35a + fbe57e9 commit 66599de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dotnet/ComputerVision/GetThumbnail/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.GetThumbnail

class Program
{
public const string subscriptionKey = "<your training key here>"; //Insert your Cognitive Services subscription key here
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.

// Add your Azure Computer Vision subscription key and endpoint to your environment variables
public const string subscriptionKey = Environment.GetEnvironmentVariable("COMPUTER_VISION_SUBSCRIPTION_KEY");
public const string endpoint = Environment.GetEnvironmentVariable("COMPUTER_VISION_ENDPOINT");

static void Main(string[] args)
{
GetThumbnailSample.RunAsync(endpoint, subscriptionKey).Wait(5000);
Expand Down

0 comments on commit 66599de

Please sign in to comment.