From cf3aa6a68c9261bf6cd4049a05da163ea3bdc91f Mon Sep 17 00:00:00 2001 From: Patrick Farley Date: Fri, 11 Dec 2020 15:30:15 -0500 Subject: [PATCH] fix samples --- .../vision/customvision/samples/CustomVisionSamples.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/CustomVision/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/samples/CustomVisionSamples.java b/java/CustomVision/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/samples/CustomVisionSamples.java index f3e0c601..42262e9c 100644 --- a/java/CustomVision/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/samples/CustomVisionSamples.java +++ b/java/CustomVision/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/samples/CustomVisionSamples.java @@ -51,11 +51,11 @@ public static void main(String[] args) { // // Authenticate CustomVisionTrainingClient trainClient = CustomVisionTrainingManager - .authenticate("https://{Endpoint}/customvision/v3.0/training/", CustomVisionTrainingClientKey) - .withEndpoint(Endpoint); + .authenticate("https://{endpoint}/customvision/v3.0/training/", trainingApiKey) + .withEndpoint(endpoint); CustomVisionPredictionClient predictor = CustomVisionPredictionManager - .authenticate("https://{Endpoint}/customvision/v3.0/prediction/", predictionApiKey) - .withEndpoint(Endpoint); + .authenticate("https://{endpoint}/customvision/v3.0/prediction/", predictionApiKey) + .withEndpoint(endpoint); // //