Merge pull request #26 from Microsoft/fix-functioncogsendpoint
Fix the Cognitive Services endpoint in the Azure Functions
This commit is contained in:
Коммит
fca8014874
|
@ -64,7 +64,7 @@ namespace ContosoMaintenance.Functions
|
|||
httpClient.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", Environment.GetEnvironmentVariable("CognitiveServicesKey"));
|
||||
|
||||
// Create Cognitive Service request url with parameters
|
||||
var url = $"{Environment.GetEnvironmentVariable("CognitiveServicesEndpoint")}/generateThumbnail?width={width}&height={height}&smartCropping=true";
|
||||
var url = $"{Environment.GetEnvironmentVariable("CognitiveServicesEndpoint")}vision/v1.0/generateThumbnail?width={width}&height={height}&smartCropping=true";
|
||||
|
||||
using (ByteArrayContent content = new ByteArrayContent(inputImage))
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче