Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

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 committed Feb 26, 2021
1 parent 74efed2 commit ea1afeb
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
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
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
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
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
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
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
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
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
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 ea1afeb

Please sign in to comment.