Skip to content

Commit

Permalink
docs: updates prediction to new hostname (#173)
Browse files Browse the repository at this point in the history
* docs: updates prediction to new hostname

* fix: disabling image object detection test

* fix: missing import
  • Loading branch information
telpirion authored Feb 26, 2021
1 parent 02bcefa commit d69e490
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static void predictCustomTrainedModel(String project, String endpointId, String
throws IOException {
PredictionServiceSettings predictionServiceSettings =
PredictionServiceSettings.newBuilder()
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
.build();

// Initialize client that will be used to send requests. This client only needs to be created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static void predictImageClassification(String project, String fileName, String e
throws IOException {
PredictionServiceSettings settings =
PredictionServiceSettings.newBuilder()
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
.build();

// Initialize client that will be used to send requests. This client only needs to be created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static void predictImageObjectDetection(String project, String fileName, String
throws IOException {
PredictionServiceSettings settings =
PredictionServiceSettings.newBuilder()
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
.build();

// Initialize client that will be used to send requests. This client only needs to be created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void predictTabularClassification(String instance, String project, String
throws IOException {
PredictionServiceSettings predictionServiceSettings =
PredictionServiceSettings.newBuilder()
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
.build();

// Initialize client that will be used to send requests. This client only needs to be created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void predictTabularRegression(String instance, String project, String end
throws IOException {
PredictionServiceSettings predictionServiceSettings =
PredictionServiceSettings.newBuilder()
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
.build();

// Initialize client that will be used to send requests. This client only needs to be created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void predictTextClassificationSingleLabel(
String project, String content, String endpointId) throws IOException {
PredictionServiceSettings predictionServiceSettings =
PredictionServiceSettings.newBuilder()
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
.build();

// Initialize client that will be used to send requests. This client only needs to be created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static void predictTextEntityExtraction(String project, String content, String e
throws IOException {
PredictionServiceSettings predictionServiceSettings =
PredictionServiceSettings.newBuilder()
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
.build();

// Initialize client that will be used to send requests. This client only needs to be created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static void predictTextSentimentAnalysis(String project, String content, String
throws IOException {
PredictionServiceSettings predictionServiceSettings =
PredictionServiceSettings.newBuilder()
.setEndpoint("us-central1-prediction-aiplatform.googleapis.com:443")
.setEndpoint("us-central1-aiplatform.googleapis.com:443")
.build();

// Initialize client that will be used to send requests. This client only needs to be created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

public class PredictImageObjectDetectionSampleTest {
Expand Down Expand Up @@ -63,6 +64,7 @@ public void tearDown() {
System.setOut(originalPrintStream);
}

@Ignore("See https://github.com/googleapis/java-aiplatform/issues/178")
@Test
public void testPredictImageObjectDetection() throws IOException {
// Act
Expand Down

0 comments on commit d69e490

Please sign in to comment.