Skip to content

Commit e1f744c

Browse files
committed
spacing
1 parent 5836739 commit e1f744c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Diff for: samples/job_with_aws_input_sample.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ async function createJobWithAWSInput() {
3030
// Or if you already know the model id and want to know more about the model, you can use this instead:
3131
//let model = await modzyClient.getModel("f7e252e26a");
3232
//You can find more information about how to query the models on the model_samples.js file.
33-
3433
// The model identifier is under the modelId key. You can take a look at the other keys by uncommenting the following line
3534
logger.info(Object.keys(model).toString().replace('\n', ' '));
3635
// Or just log the model identifier and the latest version
@@ -110,7 +109,7 @@ async function createJobWithAWSInput() {
110109
// results.json, so we can get the results as follows:
111110
if (result.results[key]) {
112111
let model_res = result.results[key]["results.json"];
113-
// The output for this model comes in a JSON format, so we can directly log the model results:
112+
// The output for this model comes in a JSON format, so we can directly log the results:
114113
logger.info(` ${key}: ${JSON.stringify(model_res)}`);
115114
}
116115
else {

Diff for: samples/job_with_embedded_input_sample.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ async function createJobWithEmbeddedInput() {
3131
// Or if you already know the model id and want to know more about the model, you can use this instead:
3232
//let model = await modzyClient.getModel("c60c8dbd79");
3333
//You can find more information about how to query the models on the model_samples.js file.
34-
3534
// The model identifier is under the modelId key. You can take a look at the other keys by uncommenting the following line
3635
logger.info(Object.keys(model).toString().replace('\n', ' '));
3736
// Or just log the model identifier and the latest version
3837
logger.info(`The model identifier is ${model.modelId} and the latest version is ${model.latestVersion}`);
38+
3939
// Get the model version object:
4040
// If you already know the model version and the input key(s) of the model version, you can skip this step. Also, you can
4141
// use the following code block to know about the input keys and skip the call on future job submissions.
@@ -82,6 +82,7 @@ async function createJobWithEmbeddedInput() {
8282
// We provide a helper method to listen until the job finishes processing. It listens until the job finishes
8383
// and moves to COMPLETED, CANCELED, or TIMEOUT.
8484
job = await modzyClient.blockUntilComplete(job);
85+
8586
// Get the results:
8687
// Check the status of the job. Jobs may be canceled or may reach a timeout.
8788
if (job.status === "COMPLETED") {
@@ -96,7 +97,7 @@ async function createJobWithEmbeddedInput() {
9697
// results.json, so we can get the results as follows:
9798
if (result.results[key]) {
9899
let model_res = result.results[key]["results.json"];
99-
// The output for this model comes in a JSON format, so we can directly log the model results:
100+
// The output for this model comes in a JSON format, so we can directly log the results:
100101
logger.info(` ${key}: ${JSON.stringify(model_res)}`);
101102
}
102103
else {

Diff for: samples/job_with_text_input_sample.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ async function createJobWithTextInput() {
3030
// Or if you already know the model id and want to know more about the model, you can use this instead:
3131
//let model = await modzyClient.getModel("ed542963de");
3232
//You can find more information about how to query the models on the model_samples.js file.
33-
3433
// The model identifier is under the modelId key. You can take a look at the other keys by uncommenting the following line
3534
logger.info(Object.keys(model).toString().replace('\n', ' '));
3635
// Or just log the model identifier and the latest version
@@ -89,7 +88,7 @@ async function createJobWithTextInput() {
8988
// results.json, so we can get the results as follows:
9089
if (result.results[key]) {
9190
let model_res = result.results[key]["results.json"];
92-
// The output for this model comes in a JSON format, so we can directly log the model results:
91+
// The output for this model comes in a JSON format, so we can directly log the results:
9392
logger.info(` ${key}: ${JSON.stringify(model_res)}`);
9493
}
9594
else {

0 commit comments

Comments
 (0)