Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion genai/snippets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<scope>test</scope>
</dependency>
Comment thread
XrossFox marked this conversation as resolved.
<dependency>
<groupId>com.openai</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ImageGenVirtualTryOnWithTextAndImage {

public static void main(String[] args) throws IOException {
// TODO(developer): Replace these variables before running the sample.
String modelId = "virtual-try-on-preview-08-04";
String modelId = "virtual-try-on-001";
String outputFile = "resources/output/man_in_sweater.png";
generateContent(modelId, outputFile);
}
Expand Down Expand Up @@ -84,4 +84,4 @@ public static Image generateContent(String modelId, String outputFile) throws IO
}
}
}
// [END googlegenaisdk_imggen_virtual_try_on_with_txt_img]
// [END googlegenaisdk_imggen_virtual_try_on_with_txt_img]
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class ImageGenerationIT {
private static final String PREFIX = "genai-img-generation-" + UUID.randomUUID();
private static final String OUTPUT_GCS_URI = String.format("gs://%s/%s", BUCKET_NAME, PREFIX);
private static final String IMAGEN_4_MODEL = "imagen-4.0-generate-001";
private static final String VIRTUAL_TRY_ON_MODEL = "virtual-try-on-preview-08-04";
private static final String VIRTUAL_TRY_ON_MODEL = "virtual-try-on-001";

private ByteArrayOutputStream bout;
private PrintStream out;
Expand Down